mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44439 Changelog: [internal] (IntersectionObserver isn't enabled yet in OSS). This fixes a bug in `IntersectionObserver` when observing the same target in multiple observers. In that case, the first time we `unobserve` we clean up some metadata that's shared across observers, and other observers observing the target have problems with the missing data. This fixes the problem by removing the clean up, as the data structure backing this information is a `WeakMap` anyway, so it'll be cleaned up automatically eventually, and the stored data is very small. Reviewed By: twobassdrum Differential Revision: D57046864 fbshipit-source-id: b001cf1ae4f4c91b74b1ad487e01691d5f3be1ce