File tree 1 file changed +19
-0
lines changed
packages/react-client/src 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -584,6 +584,25 @@ function createModelResolver<T>(
584
584
}
585
585
return value => {
586
586
parentObject [ key ] = value ;
587
+
588
+ // If this is a tuple that's representing a react element, and the props
589
+ // were resolved (4th item, key '3'), the props of `blocked.value` must be
590
+ // updated.
591
+ if (
592
+ Array . isArray ( parentObject ) &&
593
+ key === '3' &&
594
+ blocked . value &&
595
+ blocked . value . $$typeof === REACT_ELEMENT_TYPE
596
+ ) {
597
+ blocked . value . props = value ;
598
+ }
599
+
600
+ // If this is the root object for a model reference, where `blocked.value`
601
+ // is a stale `null`, the resolved value can be used directly.
602
+ if (key === '' && blocked . value === null ) {
603
+ blocked . value = value ;
604
+ }
605
+
587
606
blocked.deps--;
588
607
if (blocked.deps === 0) {
589
608
if ( chunk . status !== BLOCKED ) {
You can’t perform that action at this time.
0 commit comments