mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
IntersectionObserver: Only reset modern io, if it exists (#51510)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51510 Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D75077634 fbshipit-source-id: d648a5e8c1de8efd44f4b1d2c44932bfebe0fbb3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1161fb4fcd
commit
14a115282b
+4
-1
@@ -92,7 +92,10 @@ let modernNativeIntersectionObserver =
|
||||
unobserve: NativeIntersectionObserver.unobserveV2,
|
||||
};
|
||||
|
||||
if (!ReactNativeFeatureFlags.utilizeTokensInIntersectionObserver()) {
|
||||
if (
|
||||
modernNativeIntersectionObserver &&
|
||||
!ReactNativeFeatureFlags.utilizeTokensInIntersectionObserver()
|
||||
) {
|
||||
modernNativeIntersectionObserver = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user