Skip to content

Commit 3852aef

Browse files
committed
Remove reentrant check from Fizz/Flight
1 parent 2e41568 commit 3852aef

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

packages/react-server/src/ReactFizzServer.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,13 +1748,7 @@ function flushPartiallyCompletedSegment(
17481748
}
17491749
}
17501750

1751-
let reentrant = false;
17521751
function flushCompletedQueues(request: Request): void {
1753-
if (reentrant) {
1754-
return;
1755-
}
1756-
reentrant = true;
1757-
17581752
const destination = request.destination;
17591753
beginWriting(destination);
17601754
try {
@@ -1840,7 +1834,6 @@ function flushCompletedQueues(request: Request): void {
18401834
}
18411835
largeBoundaries.splice(0, i);
18421836
} finally {
1843-
reentrant = false;
18441837
completeWriting(destination);
18451838
flushBuffered(destination);
18461839
if (

packages/react-server/src/ReactFlightServer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -706,12 +706,7 @@ function performWork(request: Request): void {
706706
}
707707
}
708708

709-
let reentrant = false;
710709
function flushCompletedChunks(request: Request): void {
711-
if (reentrant) {
712-
return;
713-
}
714-
reentrant = true;
715710
const destination = request.destination;
716711
beginWriting(destination);
717712
try {
@@ -758,7 +753,6 @@ function flushCompletedChunks(request: Request): void {
758753
}
759754
errorChunks.splice(0, i);
760755
} finally {
761-
reentrant = false;
762756
completeWriting(destination);
763757
}
764758
flushBuffered(destination);

0 commit comments

Comments
 (0)