Skip to content

Commit 7f9d997

Browse files
authored
Land enableHiddenSubtreeInsertionEffectCleanup (#34372)
Fixes a bug where insertion effects were not cleaned up if a hidden Activity is unmounted.
1 parent aef8b1b commit 7f9d997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/ReactFeatureFlags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const renameElementSymbol: boolean = true;
166166
/**
167167
* Enables a fix to run insertion effect cleanup on hidden subtrees.
168168
*/
169-
export const enableHiddenSubtreeInsertionEffectCleanup: boolean = false;
169+
export const enableHiddenSubtreeInsertionEffectCleanup: boolean = true;
170170

171171
/**
172172
* Removes legacy style context defined using static `contextTypes` and consumed with static `childContextTypes`.

0 commit comments

Comments
 (0)