diff --git a/src/renderers/shared/reconciler/ReactCompositeComponent.js b/src/renderers/shared/reconciler/ReactCompositeComponent.js index 120e5900a45fa..37d91f1be0917 100644 --- a/src/renderers/shared/reconciler/ReactCompositeComponent.js +++ b/src/renderers/shared/reconciler/ReactCompositeComponent.js @@ -169,6 +169,10 @@ var ReactCompositeComponentMixin = { // ComponentWillUnmount shall only be called once this._calledComponentWillUnmount = false; + + if (__DEV__) { + this._warnedAboutRefsInRender = false; + } }, /** diff --git a/src/renderers/shared/reconciler/instantiateReactComponent.js b/src/renderers/shared/reconciler/instantiateReactComponent.js index 326e931a13eba..0632a3c4d5a29 100644 --- a/src/renderers/shared/reconciler/instantiateReactComponent.js +++ b/src/renderers/shared/reconciler/instantiateReactComponent.js @@ -135,11 +135,6 @@ function instantiateReactComponent(node) { instance._mountIndex = 0; instance._mountImage = null; - if (__DEV__) { - instance._isOwnerNecessary = false; - instance._warnedAboutRefsInRender = false; - } - if (__DEV__) { var debugID = isEmpty ? 0 : nextDebugID++; instance._debugID = debugID;