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 db22ea3b91df7..968c2991f73db 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;