A framework for building native applications using React
Fix crash on reload (#56594)
Summary: Revert crash on reload caused by https://github.com/facebook/react-native/commit/45b4817414928c9bfa0b055bb09533ac177cada6#diff-99e9fee4dbe9d329e2f7df16035fb871fa583c92028a48fefb1c48e405638944R314-R316 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` Pull Request resolved: https://github.com/facebook/react-native/pull/56594 Test Plan: Reload the development server Reviewed By: cortinico Differential Revision: D106362104 Pulled By: javache fbshipit-source-id: 69c6a28b81c5fd55cc1f4bac29c177e70912fa1a
D
Danny Povolotski committed
ac81869f05d74bccc79d78e738619cfc403db767
Parent: b8bb88d
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 5/27/2026, 12:59:18 PM