dillon1000/react
Commit
Browse files Add Fragment Refs to Fabric with intersection observer support (#33056)
Adds Fragment Ref support to RN through the Fabric config, starting with `observeUsing`/`unobserveUsing`. This is mostly a copy from the implementation on DOM, and some of it can likely be shared in the future but keeping it separate for now and we can refactor as we add more features. Added a basic test with Fabric, but testing specific methods requires so much mocking that it doesn't seem valuable here. I built Fabric and ran on the Catalyst app internally to test with intersection observers end to end.
Changed paths6 files
First-parent comparisonpackages/react-native-renderer/src/ReactFiberConfigFabric.js ModifiedA packages/react-native-renderer/src/__tests__/ReactFabricFragmentRefs-test.internal.js AddedM packages/react-reconciler/src/ReactFiberTreeReflection.js ModifiedM packages/shared/forks/ReactFeatureFlags.native-fb-dynamic.js ModifiedM packages/shared/forks/ReactFeatureFlags.native-fb.js ModifiedM scripts/error-codes/codes.json ModifiedPatch
Files changed
Rendering syntax-highlighted changes…