File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/app/src/sandbox/eval Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ export default class Manager {
7979 hardReload: boolean ;
8080 hmrStatus: 'idle' | 'check' | 'apply' | 'fail' | 'dispose' = 'idle' ;
8181 testRunner: TestRunner ;
82+ isFirstLoad: boolean ;
8283
8384 // List of modules that are being transpiled, to prevent duplicate jobs.
8485 transpileJobs: { [ transpiledModuleId : string ] : true } ;
Original file line number Diff line number Diff line change @@ -654,7 +654,11 @@ export default class TranspiledModule {
654654 : this . isEntry && ! this . isTestFile ;
655655
656656 if ( shouldReloadPage ) {
657- ignoreNextCache ( ) ;
657+ if ( manager . isFirstLoad ) {
658+ // We're in a reload loop! Ignore all caches!
659+
660+ ignoreNextCache ( ) ;
661+ }
658662
659663 location . reload ( ) ;
660664 return { } ;
You can’t perform that action at this time.
0 commit comments