Skip to content

Cancel pending Fabric surface starts - #58977

Open
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D124262921
Open

Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D124262921

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
Surface startup is deferred to the main queue. A stop request that arrived before the deferred work previously returned without cancelling it, allowing the surface to start after its owner began tearing down.

Track pending starts under the surface mutex so stop can cancel them before registration and startup. Keep attachment and startup serialized, and notify stage changes after releasing the mutex.

Changelog:
[iOS][Fixed] - Prevent Fabric surfaces from starting after an earlier stop request

Differential Revision: D124262921

Summary:
Surface startup is deferred to the main queue. A stop request that arrived before the deferred work previously returned without cancelling it, allowing the surface to start after its owner began tearing down.

Track pending starts under the surface mutex so stop can cancel them before registration and startup. Keep attachment and startup serialized, and notify stage changes after releasing the mutex.

Changelog:
[iOS][Fixed] - Prevent Fabric surfaces from starting after an earlier stop request

Differential Revision: D124262921
@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 Oct 9, 2026
@meta-codesync

meta-codesync Bot commented Oct 9, 2026

Copy link
Copy Markdown

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

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant