File tree 1 file changed +3
-7
lines changed
packages/react-client/src 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -421,7 +421,6 @@ function initializeModelChunk<T>(chunk: ResolvedModelChunk<T>): void {
421
421
initializingChunkBlockedModel !== null &&
422
422
initializingChunkBlockedModel . deps > 0
423
423
) {
424
- initializingChunkBlockedModel . value = value ;
425
424
// We discovered new dependencies on modules that are not yet resolved.
426
425
// We have to go the BLOCKED state until they're resolved.
427
426
const blockedChunk : BlockedChunk < T > = ( chunk : any ) ;
@@ -577,10 +576,7 @@ function createModelResolver<T>(
577
576
blocked . deps ++ ;
578
577
}
579
578
} else {
580
- blocked = initializingChunkBlockedModel = {
581
- deps : cyclic ? 0 : 1 ,
582
- value : ( null : any ) ,
583
- } ;
579
+ blocked = initializingChunkBlockedModel = { deps : cyclic ? 0 : 1 } ;
584
580
}
585
581
return value => {
586
582
parentObject [ key ] = value ;
@@ -592,9 +588,9 @@ function createModelResolver<T>(
592
588
const resolveListeners = chunk . value ;
593
589
const initializedChunk : InitializedChunk < T > = ( chunk : any ) ;
594
590
initializedChunk . status = INITIALIZED ;
595
- initializedChunk . value = blocked . value ;
591
+ initializedChunk . value = value ;
596
592
if ( resolveListeners !== null ) {
597
- wakeChunk ( resolveListeners , blocked . value ) ;
593
+ wakeChunk ( resolveListeners , value ) ;
598
594
}
599
595
}
600
596
} ;
You can’t perform that action at this time.
0 commit comments