Skip to content

Fix crash on reload#56594

Open
etodanik wants to merge 1 commit intofacebook:mainfrom
etodanik:patch-2
Open

Fix crash on reload#56594
etodanik wants to merge 1 commit intofacebook:mainfrom
etodanik:patch-2

Conversation

@etodanik
Copy link
Copy Markdown
Contributor

Revert crash on reload caused by 45b4817#diff-99e9fee4dbe9d329e2f7df16035fb871fa583c92028a48fefb1c48e405638944R314-R316

Summary:

@j-piasecki your change that seems redundant for the destructor case (reactInstanceData_ is a unique pointer and will be destroyed anyway) and breaks the reload case (by setting contextContainer to nullptr, which is then immediately accessed by createReactInstance, causing a crash)

Changelog:

[GENERAL] [FIXED] - Fixed a regression that causes crashes on reload for ReactCxxPlatform's ReactHost

Test Plan:

Reload the development server

@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 24, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Apr 24, 2026
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. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant