mirror of
https://github.com/react/react-native.git
synced 2026-09-28 13:23:09 +08:00
Add host instance pointer and text node feature flags (#55614)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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 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 `<Text/>` wrapper throws an error. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D93479122 fbshipit-source-id: 639369893c8aafc1d2bf0ffbdf4bf09fe6dca45c
This commit is contained in:
committed by
meta-codesync[bot]
parent
c4ae05534a
commit
ba4ed28cb0
@@ -16,4 +16,6 @@ module.exports = {
|
||||
// See https://github.com/facebook/react/pull/33161 for details.
|
||||
enableEagerAlternateStateNodeCleanup: true,
|
||||
enableFragmentRefs: true,
|
||||
enableFragmentRefsInstanceHandles: true,
|
||||
enableFragmentRefsTextNodes: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user