mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Move dev-only flags to only exist on composites (#6709)
_isOwnerNecessary was unused.
This commit is contained in:
@@ -169,6 +169,10 @@ var ReactCompositeComponentMixin = {
|
||||
|
||||
// ComponentWillUnmount shall only be called once
|
||||
this._calledComponentWillUnmount = false;
|
||||
|
||||
if (__DEV__) {
|
||||
this._warnedAboutRefsInRender = false;
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user