mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 03:50:11 +08:00
Avoid holding references to ReactShadowNode after a tree is commited
Reviewed By: achen1 Differential Revision: D7495721 fbshipit-source-id: 33d5bba5040729f891455a9c330234fe25130b02
This commit is contained in:
committed by
Facebook Github Bot
parent
9fd2b9a75f
commit
bf7601fde1
@@ -329,6 +329,9 @@ public class FabricUIManager implements UIManager {
|
||||
boolean frameDidChange =
|
||||
node.dispatchUpdates(absoluteX, absoluteY, mUIViewOperationQueue, null);
|
||||
}
|
||||
// Set the reference to the OriginalReactShadowNode to NULL, as the tree is already committed
|
||||
// and we do not need to hold references to the previous tree anymore
|
||||
node.setOriginalReactShadowNode(null);
|
||||
node.markUpdateSeen();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user