@samitouri / QOS-React-2 / commits / 7a9c13dee8

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.

Sebastian Markbage committed Oct 9, 2013 at 11:11 UTC 7a9c13dee8a37f7dfaf02d76c75f67b403df0045
1 file changed +1 -1
src/core/ReactCompositeComponent.js
+1 -1
@@ -798,6 +798,7 @@ var ReactCompositeComponentMixin = {
798 var thisID = this._rootNodeID;
799 var currentComponentID = currentComponent._rootNodeID;
800 currentComponent.unmountComponent();
801 + this._renderedComponent = nextComponent;
802 var nextMarkup = nextComponent.mountComponent(
803 thisID,
804 transaction,
@@ -807,7 +808,6 @@ var ReactCompositeComponentMixin = {
808 currentComponentID,
809 nextMarkup
810 );
810 - this._renderedComponent = nextComponent;
811 }
812 }
813 ),