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 0fc1547 commit 7ad9806Copy full SHA for 7ad9806
packages/react-reconciler/src/ReactFiberUnwindWork.js
@@ -214,8 +214,9 @@ function throwException(
214
// attach another listener to flip the boundary back to its normal state.
215
const thenables: Set<Thenable> = (workInProgress.updateQueue: any);
216
if (thenables === null) {
217
- workInProgress.updateQueue = (new Set(): any);
218
- workInProgress.updateQueue.add(thenable);
+ const updateQueue = (new Set(): any);
+ updateQueue.add(thenable);
219
+ workInProgress.updateQueue = updateQueue;
220
} else {
221
thenables.add(thenable);
222
}
0 commit comments