We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b676c1 commit 515b922Copy full SHA for 515b922
packages/react-server/src/ReactFlightServer.js
@@ -2505,6 +2505,10 @@ function visitAsyncNodeImpl(
2505
// Promise that was ultimately awaited by the user space await.
2506
serializeIONode(request, ioNode, awaited.promise);
2507
2508
+ // If we ever visit this I/O node again, skip it because we already emitted this
2509
+ // exact entry and we don't need two awaits on the same thing.
2510
+ visited.set(ioNode, null);
2511
+
2512
// Ensure the owner is already outlined.
2513
if (node.owner != null) {
2514
outlineComponentInfo(request, node.owner);
0 commit comments