Commit b6b0746
RN: Patch
Summary:
Pull Request resolved: facebook#51856
Enables the `enableEagerAlternateStateNodeCleanup` feature flag in the open source React Native renderers that are currently targeting React 19.1, by manually patching them in the React Native repository.
This feature flag has been found to significantly improve memory management of parent alternate fibers in persistent modes (i.e. Fabric), and we want this to be available to open source users of React Native before the next scheduled public version release of React.
For more details about the fix, see: facebook/react#33161
Changelog:
[General][Changed] - Reduces memory usage, by improving memory management of parent alternate fibers. (Previously, a parent fiber might retain memory associated with shadow nodes from a previous commit.)
Reviewed By: rickhanlonii
Differential Revision: D76073900
fbshipit-source-id: 6779ea0862d4a1e25354b12ef3d1363dc12d26ccenableEagerAlternateStateNodeCleanup into Renderers (OSS) (facebook#51856)1 parent 78b2961 commit b6b0746
File tree
3 files changed
+9
-3
lines changed- packages/react-native/Libraries/Renderer/implementations
3 files changed
+9
-3
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
10483 | 10483 | | |
10484 | 10484 | | |
10485 | 10485 | | |
| 10486 | + | |
| 10487 | + | |
10486 | 10488 | | |
10487 | 10489 | | |
10488 | 10490 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
8005 | 8005 | | |
8006 | 8006 | | |
8007 | 8007 | | |
| 8008 | + | |
| 8009 | + | |
8008 | 8010 | | |
8009 | 8011 | | |
8010 | 8012 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
8488 | 8488 | | |
8489 | 8489 | | |
8490 | 8490 | | |
| 8491 | + | |
| 8492 | + | |
8491 | 8493 | | |
8492 | 8494 | | |
8493 | 8495 | | |
| |||
0 commit comments