Skip to content

Commit

Permalink
Wrap references to pending chunks with React.lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 25, 2024
1 parent 36f7400 commit d8984de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,7 @@ function parseModelString(
}
return chunkValue;
case PENDING:
return createLazyChunkWrapper(chunk);
case BLOCKED:
case CYCLIC:
const parentChunk = initializingChunk;
Expand Down

0 comments on commit d8984de

Please sign in to comment.