From 8fc04678f75152eb7ebc2399c273fc4ef5eae15b Mon Sep 17 00:00:00 2001 From: Jack Pope Date: Wed, 18 Feb 2026 06:39:08 -0800 Subject: [PATCH] Add host instance pointer and text node feature flags Summary: - 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 https://github.com/facebook/react/pull/34935 - enableFragmentRefsTextNodes - This should be a noop on RN as unlike dom, text nodes are considered host components and already handled. Text without a `` wrapper throws an error. Reviewed By: christophpurrer Differential Revision: D93479122 --- .../runtime/mocks/ReactNativeInternalFeatureFlags.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js b/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js index c05bbe3c1c2b..67c288272650 100644 --- a/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js +++ b/private/react-native-fantom/runtime/mocks/ReactNativeInternalFeatureFlags.js @@ -16,4 +16,6 @@ module.exports = { // See https://github.com/facebook/react/pull/33161 for details. enableEagerAlternateStateNodeCleanup: true, enableFragmentRefs: true, + enableFragmentRefsInstanceHandles: true, + enableFragmentRefsTextNodes: true, };