Add option to delay deletion of viewState

Summary:
changelog: [internal]

ViewState is sometimes deleted but not created again because of race condition in C++ pre-allocation and how it checks for revision to determine if createView mount item should be dispatched.

In this diff, we add an option to delay deletion of ViewState until the next commit.

Reviewed By: ShikaSD

Differential Revision: D34553174

fbshipit-source-id: e5213f1d39137fb56fc745321a7c1b28d417ea27
This commit is contained in:
Samuel Susla authored and Facebook GitHub Bot committed 2022-03-03 06:02:02 -08:00
1 parent eb434c1c76
commit 664f9b11ba
3 files changed
+50 -5

No files matched your search

@@ -98,4 +98,6 @@ public class ReactFeatureFlags {
public static boolean enableAggressiveEventEmitterCleanup = false;
public static boolean insertZReorderBarriersOnViewGroupChildren = true;
public static boolean enableDelayedViewStateDeletion = false;
}