File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -759,6 +759,15 @@ export class RunController extends EventEmitter implements IRunController {
759759 // IMPORTANT: keep the same instance as we rely on side effects
760760 _ . assign ( liveSyncResultInfo , fullLiveSyncResultInfo ) ;
761761 } ;
762+ await this . $hooksService . executeBeforeHooks ( "watchAction" , {
763+ hookArgs : {
764+ liveSyncResultInfo,
765+ filesToSync,
766+ allAppFiles,
767+ isInHMRMode,
768+ filesChangedEvent : data ,
769+ } ,
770+ } ) ;
762771
763772 await this . refreshApplication (
764773 projectData ,
@@ -786,6 +795,13 @@ export class RunController extends EventEmitter implements IRunController {
786795 ) ;
787796 }
788797 }
798+ await this . $hooksService . executeAfterHooks ( "watchAction" , {
799+ liveSyncResultInfo,
800+ filesToSync,
801+ allAppFiles,
802+ filesChangedEvent : data ,
803+ isInHMRMode,
804+ } ) ;
789805
790806 this . $logger . info (
791807 util . format (
You can’t perform that action at this time.
0 commit comments