Skip to content

Commit

Permalink
Fix timing issue with fake promise resolving sync (#31304)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage authored Oct 20, 2024
1 parent f11bd34 commit 65a56d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ function loadServerReference<A: Iterable<any>, T>(
if (!metaData.bound) {
return (requireModule(serverReference): any);
} else {
promise = metaData.bound;
promise = Promise.resolve(metaData.bound);
}
} else if (metaData.bound) {
promise = Promise.all([promise, metaData.bound]);
Expand Down

0 comments on commit 65a56d0

Please sign in to comment.