Skip to content

Commit

Permalink
Tweak to avoid property read (#14593)
Browse files Browse the repository at this point in the history
  • Loading branch information
aweary authored Jan 15, 2019
1 parent 0fc1547 commit 7ad9806
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/react-reconciler/src/ReactFiberUnwindWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7ad9806

Please sign in to comment.