Skip to content

Commit

Permalink
Apply fiber tree traversal (remove null check)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Apr 2, 2019
1 parent 9e176b6 commit 56e385b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-reconciler/src/ReactFiberCompleteWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ function completeWork(
while (node !== null) {
if (node.tag === HostComponent) {
parentHostInstance = node.stateNode;
break;
}
node = node.return;
}
Expand Down

0 comments on commit 56e385b

Please sign in to comment.