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:
Sebastian Markbage
2013-10-09 11:28:22 -07:00
committed by Paul O’Shannessy
parent d652dd928a
commit 7a9c13dee8
+1 -1
View File
@@ -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;
}
}
),