We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e8db6b + 4e3d38e commit 2751e81Copy full SHA for 2751e81
src/renderers/shared/reconciler/ReactCompositeComponent.js
@@ -806,13 +806,7 @@ var ReactCompositeComponentMixin = {
806
this._processChildContext(context)
807
);
808
} else {
809
- // TODO: This is currently necessary due to the unfortunate caching
810
- // that ReactMount does which makes it exceedingly difficult to unmount
811
- // a set of siblings without accidentally repopulating the node cache (see
812
- // #5151). Once ReactMount no longer stores the nodes by ID, this method
813
- // can go away.
814
var oldNativeNode = ReactReconciler.getNativeNode(prevComponentInstance);
815
-
816
ReactReconciler.unmountComponent(prevComponentInstance);
817
818
this._renderedNodeType = ReactNodeTypes.getType(nextRenderedElement);
0 commit comments