mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-10 22:47:58 +08:00
Fix removal of ReactShadowNode
Reviewed By: achen1 Differential Revision: D7323294 fbshipit-source-id: 411aa1bcd93cc4f9df78f64ceb0c0d8c127bc3b0
This commit is contained in:
committed by
Facebook Github Bot
parent
cc3d45d2e9
commit
5347ecfd29
@@ -103,6 +103,9 @@ public class FabricReconciler {
|
||||
indicesToRemove[indicesToRemoveIndex++] = j;
|
||||
if (!addedTags.contains(nodeToRemove.getReactTag())) {
|
||||
tagsToDelete.add(nodeToRemove.getReactTag());
|
||||
// TODO: T26729293 since we are not cloning ReactShadowNode's we need to "manually" remove
|
||||
// from the ReactShadowTree when one of the nodes is deleted in JS.
|
||||
nodeToRemove.getParent().removeChildAt(j);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user