Skip to content

Commit ba4ed28

Browse files
Jack Popemeta-codesync[bot]
authored andcommitted
Add host instance pointer and text node feature flags (#55614)
Summary: Pull Request resolved: #55614 - enableFragmentRefsInstanceHandles - Enables a pointer on each element back to the FragmentInstances that control it. Needed to implement the common IntersectionObserver pattern of reusing IntersectionObservers across multiple callbacks. See more in react/react#34935 - enableFragmentRefsTextNodes - This should be a noop on RN as unlike dom, text nodes are considered host components and already handled. Text without a `<Text/>` wrapper throws an error. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D93479122 fbshipit-source-id: 639369893c8aafc1d2bf0ffbdf4bf09fe6dca45c
1 parent c4ae055 commit ba4ed28

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ module.exports = {
1616
// See https://github.com/facebook/react/pull/33161 for details.
1717
enableEagerAlternateStateNodeCleanup: true,
1818
enableFragmentRefs: true,
19+
enableFragmentRefsInstanceHandles: true,
20+
enableFragmentRefsTextNodes: true,
1921
};

0 commit comments

Comments
 (0)