Skip to content

Commit

Permalink
Set _renderedComponent before it's fully mounted
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebmarkbage authored and zpao committed Oct 9, 2013
1 parent d652dd9 commit 7a9c13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/ReactCompositeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -807,7 +808,6 @@ var ReactCompositeComponentMixin = {
currentComponentID,
nextMarkup
);
this._renderedComponent = nextComponent;
}
}
),
Expand Down

0 comments on commit 7a9c13d

Please sign in to comment.