dillon1000/react
Commit
Browse files Add on(Caught|Uncaught|Recoverable) opts to RN (#28836)
## Overview There's currently a bug in RN now that we no longer re-throw errors. The `showErrorDialog` function in React Native only logs the errors as soft errors, and never a fatal. RN was depending on the global handler for the fatal error handling and logging. Instead of fixing this in `ReactFiberErrorDialog`, we can implement the new root options in RN to handle caught/uncaught/recoverable in the respective functions, and delete ReactFiberErrorDialog. I'll follow up with a RN PR to implement these options and fix the error handling.
Changed paths2 files
First-parent comparisonpackages/react-native-renderer/src/ReactFabric.js ModifiedM packages/react-native-renderer/src/ReactNativeRenderer.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…