Skip to content

Commit

Permalink
Removed note explaining why the logic is there, since the justificati…
Browse files Browse the repository at this point in the history
…on is now different.
  • Loading branch information
jimfb committed Jan 5, 2016
1 parent 0e8db6b commit 4e3d38e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/renderers/shared/reconciler/ReactCompositeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,13 +806,7 @@ var ReactCompositeComponentMixin = {
this._processChildContext(context)
);
} else {
// TODO: This is currently necessary due to the unfortunate caching
// that ReactMount does which makes it exceedingly difficult to unmount
// a set of siblings without accidentally repopulating the node cache (see
// #5151). Once ReactMount no longer stores the nodes by ID, this method
// can go away.
var oldNativeNode = ReactReconciler.getNativeNode(prevComponentInstance);

ReactReconciler.unmountComponent(prevComponentInstance);

this._renderedNodeType = ReactNodeTypes.getType(nextRenderedElement);
Expand Down

0 comments on commit 4e3d38e

Please sign in to comment.