File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export default function withAsyncComponents(app : React$Element) {
53
53
if ( ! rehydrateState . resolved [ id ] ) {
54
54
return false ;
55
55
}
56
+ rehydrateState [ id ] = false ;
56
57
} else if ( defer ) {
57
58
// Deferred, so return false to stop walking down this branch.
58
59
return false ;
@@ -79,6 +80,8 @@ export default function withAsyncComponents(app : React$Element) {
79
80
return doWalk ( appWithAsyncComponents , { } , true )
80
81
// Swallow errors.
81
82
. catch ( ( ) => undefined )
83
+ // Ensure that state rehydration is killed
84
+ . then ( ( ) => { if ( typeof window === 'object' ) { window [ STATE_IDENTIFIER ] = null ; } } )
82
85
. then ( ( ) => ( {
83
86
appWithAsyncComponents,
84
87
state : { resolved : execContext . getResolved ( ) } ,
You can’t perform that action at this time.
0 commit comments