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:
David Vacca
2018-04-06 15:01:19 -07:00
committed by Facebook Github Bot
parent 9fd2b9a75f
commit bf7601fde1
2 changed files with 14 additions and 24 deletions

View File

@@ -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();
}