Files
react-native/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js
Jack Pope d18f1f7ca3 Enable Fragment Refs for intersection observers on Fabric (#52474)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52474

1. Enables the feature flags for fragment refs on fbsource
2. Adds a test with Fantom for usage of `FragmentInstance#observeUsing` and `FragmentInstance#unobserveUsing`.
3. Exposes the `ReactFragmentInstance` type with the common methods that are used on native. We can override the DOM only methods in www libdefs.

Changelog: [Internal]

Reviewed By: rubennorte

Differential Revision: D74326262

fbshipit-source-id: e35ee45b23179ad3ba5527763567c9b04c127eff
2025-07-09 16:03:25 -07:00

20 lines
691 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
*/
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,
enableFragmentRefs: true,
};