mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d18f1f7ca3
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
20 lines
691 B
JavaScript
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,
|
|
};
|