Skip to content

Stale MutationObserver records abort callbacks for active observers #58236

Description

@OskarEichler

Description

The MutationObserver manager explicitly tolerates stale native records when an observer is disconnected between commit and mount. However, encountering one missing registration returns from the entire notification pass, dropping every later record and callback in the same native batch, including records for still-active observers.

Expected behavior

A stale record for a disconnected observer should be ignored while notification continues for all active observers in the batch, matching the equivalent ResizeObserver handling.

React Native Version

0.87.1 and current main

Affected Platforms

New Architecture - All

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions