Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unreachable if-condition in refresh logic (#45296)
Summary: The `hasUnrecoverableErrors` function has been [hardcoded](https://github.com/facebook/react/blob/f38c22b244086f62ae5ed851b6ed17029ec44be5/packages/react-refresh/src/ReactFreshRuntime.js#L602) to always return false for the past 5 years, since React Refresh [can recover from all errors](facebook/react#17438). This hardcoding was introduced in react-refresh v0.7.1, and RN currently uses v0.14.2. ## Changelog: [INTERNAL] [REMOVED] - Remove unreachable if-condition in refresh logic Pull Request resolved: #45296 Test Plan: Fast Refresh should still work as expected. Reviewed By: NickGerleman Differential Revision: D59405648 Pulled By: arushikesarwani94 fbshipit-source-id: 6fefedb484eeab032028d738b48ac936a9044cb0
- Loading branch information