Files
react-native/packages/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js
T
Samuel Susla 3e3f8eade5 enable enableEagerAlternateStateNodeCleanup in tests (#51291)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51291

changelog: [internal]

enable enableEagerAlternateStateNodeCleanup in tests and remove workarounds.

Reviewed By: rubennorte

Differential Revision: D74643973

fbshipit-source-id: 00f9a6b36546fdea246b587e0e716c7aa76c6bbc
2025-05-13 07:00:26 -07:00

20 lines
687 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
* @oncall react_native
*/
module.exports = {
// When enableEagerAlternateStateNodeCleanup is enabled, alternate.stateNode is proactively
// pointed towards finishedWork's stateNode, releasing resources sooner.
// With enableEagerAlternateStateNodeCleanup enabled, we can remove workarounds in tests
// and have predictable memory model.
// See https://github.com/facebook/react/pull/33161 for details.
enableEagerAlternateStateNodeCleanup: true,
};