mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Move dev-only flags to only exist on composites (#6709)
_isOwnerNecessary was unused.
This commit is contained in:
1 parent
b6a6078167
commit
e01bf78a79
2 files changed
+4
-5
No files matched your search
@@ -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