Skip to content

Move event dispatch logic from FabricUIManager into SurfaceMountingManager#56659

Open
javache wants to merge 1 commit intofacebook:mainfrom
javache:export-D103007280
Open

Move event dispatch logic from FabricUIManager into SurfaceMountingManager#56659
javache wants to merge 1 commit intofacebook: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]

Differential Revision: D103007280

…nager

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]

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.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant