mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47760 Changelog: [internal] (this is internal because this API isn't enabled in OSS yet) This fixes 2 bugs in `MutationObserver`: 1. Incorrectly reporting updates for the same node multiple times, if changes are observable by different targets in the same observer. 2. Incorrectly ignoring observations of subsequent targets in a given observer. These were caught when migrating the unit tests for `MutationObserver` that were mocking Fabric to a Fantom integration test that uses the whole C++ infra. Reviewed By: sammy-SC Differential Revision: D66232571 fbshipit-source-id: b6e967ca4deaa1a69d35f14d4f921103fec2bbaf