mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Set _renderedComponent before it's fully mounted
For debugging so that we can inspect the currently rendering tree. I think this should be safe and makes sense since it tried to mount.
This commit is contained in:
committed by
Paul O’Shannessy
parent
d652dd928a
commit
7a9c13dee8
@@ -798,6 +798,7 @@ var ReactCompositeComponentMixin = {
|
||||
var thisID = this._rootNodeID;
|
||||
var currentComponentID = currentComponent._rootNodeID;
|
||||
currentComponent.unmountComponent();
|
||||
this._renderedComponent = nextComponent;
|
||||
var nextMarkup = nextComponent.mountComponent(
|
||||
thisID,
|
||||
transaction,
|
||||
@@ -807,7 +808,6 @@ var ReactCompositeComponentMixin = {
|
||||
currentComponentID,
|
||||
nextMarkup
|
||||
);
|
||||
this._renderedComponent = nextComponent;
|
||||
}
|
||||
}
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user