We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d724ba9 commit ef231d1Copy full SHA for ef231d1
1 file changed
packages/react-client/src/ReactFlightClient.js
@@ -1057,8 +1057,7 @@ function getOutlinedModel<T>(
1057
case INITIALIZED:
1058
let value = chunk.value;
1059
for (let i = 1; i < path.length; i++) {
1060
- value = value[path[i]];
1061
- if (value.$$typeof === REACT_LAZY_TYPE) {
+ while (value.$$typeof === REACT_LAZY_TYPE) {
1062
const referencedChunk: SomeChunk<any> = value._payload;
1063
if (referencedChunk.status === INITIALIZED) {
1064
value = referencedChunk.value;
@@ -1069,10 +1068,11 @@ function getOutlinedModel<T>(
1069
1068
key,
1070
response,
1071
map,
1072
- path.slice(i),
+ path.slice(i - 1),
1073
);
1074
}
1075
+ value = value[path[i]];
1076
1077
const chunkValue = map(response, value);
1078
if (__DEV__ && chunk._debugInfo) {
0 commit comments