From eafb2e3b2356e54996c3eca106ba05505b91c4e7 Mon Sep 17 00:00:00 2001 From: Austin Greene Date: Thu, 19 Jul 2018 14:51:16 -0700 Subject: [PATCH] FIX: use reactInstance variable when possible --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6166bb5..f0c131e 100644 --- a/index.js +++ b/index.js @@ -188,7 +188,7 @@ function componentAfterRender(component) { function addComponent(component) { var reactInstance = component._reactInternalInstance; if (reactInstance && !components[reactInstance._debugID]) { - components[component._reactInternalInstance._debugID] = component; + components[reactInstance._debugID] = component; componentAfterRender(component); } }