Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
FIX: use reactInstance variable when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
agreene-coursera committed Jul 19, 2018
1 parent d5901f3 commit eafb2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit eafb2e3

Please sign in to comment.