mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Tweak to avoid property read (#14593)
This commit is contained in:
+3
-2
@@ -214,8 +214,9 @@ function throwException(
|
||||
// attach another listener to flip the boundary back to its normal state.
|
||||
const thenables: Set<Thenable> = (workInProgress.updateQueue: any);
|
||||
if (thenables === null) {
|
||||
workInProgress.updateQueue = (new Set(): any);
|
||||
workInProgress.updateQueue.add(thenable);
|
||||
const updateQueue = (new Set(): any);
|
||||
updateQueue.add(thenable);
|
||||
workInProgress.updateQueue = updateQueue;
|
||||
} else {
|
||||
thenables.add(thenable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user