Skip to content

Move event dispatch logic from FabricUIManager into SurfaceMountingManager (#56659)#56659

Closed
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D103007280
Closed

Move event dispatch logic from FabricUIManager into SurfaceMountingManager (#56659)#56659
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D103007280

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Apr 30, 2026

Summary:

Refactor: consolidate the event dispatch decision (enqueue vs direct dispatch) into SurfaceMountingManager.dispatchEvent, removing the 3-way branching from FabricUIManager.receiveEvent. The sync event path remains in FabricUIManager.

This moves getEventEmitter, getViewExists, and enqueuePendingEvent calls behind a single dispatchEvent entry point, making the ordering logic fully encapsulated in SurfaceMountingManager.

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D103007280

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 30, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 30, 2026

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D103007280.

@meta-codesync meta-codesync Bot changed the title Move event dispatch logic from FabricUIManager into SurfaceMountingManager Move event dispatch logic from FabricUIManager into SurfaceMountingManager (#56659) May 5, 2026
@javache javache force-pushed the export-D103007280 branch from 52e60bc to f962b1c Compare May 5, 2026 09:59
javache added a commit to javache/react-native that referenced this pull request May 5, 2026
…nager (facebook#56659)

Summary:

Refactor: consolidate the event dispatch decision (enqueue vs direct dispatch) into `SurfaceMountingManager.dispatchEvent`, removing the 3-way branching from `FabricUIManager.receiveEvent`. The sync event path remains in `FabricUIManager`.

This moves `getEventEmitter`, `getViewExists`, and `enqueuePendingEvent` calls behind a single `dispatchEvent` entry point, making the ordering logic fully encapsulated in `SurfaceMountingManager`.

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D103007280
@javache javache force-pushed the export-D103007280 branch from f962b1c to e14f80b Compare May 6, 2026 10:02
javache added a commit to javache/react-native that referenced this pull request May 6, 2026
…nager (facebook#56659)

Summary:

Refactor: consolidate the event dispatch decision (enqueue vs direct dispatch) into `SurfaceMountingManager.dispatchEvent`, removing the 3-way branching from `FabricUIManager.receiveEvent`. The sync event path remains in `FabricUIManager`.

This moves `getEventEmitter`, `getViewExists`, and `enqueuePendingEvent` calls behind a single `dispatchEvent` entry point, making the ordering logic fully encapsulated in `SurfaceMountingManager`.

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D103007280
…nager (facebook#56659)

Summary:

Refactor: consolidate the event dispatch decision (enqueue vs direct dispatch) into `SurfaceMountingManager.dispatchEvent`, removing the 3-way branching from `FabricUIManager.receiveEvent`. The sync event path remains in `FabricUIManager`.

This moves `getEventEmitter`, `getViewExists`, and `enqueuePendingEvent` calls behind a single `dispatchEvent` entry point, making the ordering logic fully encapsulated in `SurfaceMountingManager`.

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D103007280
@javache javache force-pushed the export-D103007280 branch from e14f80b to 6570f83 Compare May 6, 2026 10:27
@meta-codesync meta-codesync Bot closed this in 97fa2a4 May 6, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 6, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 6, 2026

This pull request has been merged in 97fa2a4.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 97fa2a4

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D103007280 branch May 7, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants