From 56e385bb19279277a42ff5854e5a5acd14a1cfa2 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Tue, 2 Apr 2019 14:25:41 +0100 Subject: [PATCH] Apply fiber tree traversal (remove null check) --- packages/react-reconciler/src/ReactFiberCompleteWork.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-reconciler/src/ReactFiberCompleteWork.js b/packages/react-reconciler/src/ReactFiberCompleteWork.js index 36dc1d2112ac8..abd125d3acb78 100644 --- a/packages/react-reconciler/src/ReactFiberCompleteWork.js +++ b/packages/react-reconciler/src/ReactFiberCompleteWork.js @@ -790,6 +790,7 @@ function completeWork( while (node !== null) { if (node.tag === HostComponent) { parentHostInstance = node.stateNode; + break; } node = node.return; }