@samitouri / QOS-React / commits / 7f9d99749c

Land enableHiddenSubtreeInsertionEffectCleanup (#34372)

Fixes a bug where insertion effects were not cleaned up if a hidden Activity is unmounted.

Ricky committed Oct 1, 2025 at 16:31 UTC 7f9d99749c95d69b23efaa328c4388d73a39bf50
1 file changed +1 -1
packages/shared/ReactFeatureFlags.js
+1 -1
@@ -166,7 +166,7 @@ export const renameElementSymbol: boolean = true;
166 /**
167 * Enables a fix to run insertion effect cleanup on hidden subtrees.
168 */
169 -export const enableHiddenSubtreeInsertionEffectCleanup: boolean = false;
169 +export const enableHiddenSubtreeInsertionEffectCleanup: boolean = true;
170
171 /**
172 * Removes legacy style context defined using static `contextTypes` and consumed with static `childContextTypes`.