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
2022-03-03 06:02:02 -08:00
committed by Facebook GitHub Bot
parent eb434c1c76
commit 664f9b11ba
3 changed files with 50 additions and 5 deletions
@@ -98,4 +98,6 @@ public class ReactFeatureFlags {
public static boolean enableAggressiveEventEmitterCleanup = false;
public static boolean insertZReorderBarriersOnViewGroupChildren = true;
public static boolean enableDelayedViewStateDeletion = false;
}