react-native-exception-handler
react-native-exception-handler copied to clipboard
warning and error is not fatal ?
trafficstars
Im using this code in my app.
const errorHandler = async (error, isFatal) => {
console.log(error, isFatal)
sendCrashToLogger()
if (isFatal) {
RNRestart.Restart()
}
}
setNativeExceptionHandler(errorHandler);
setJSExceptionHandler(errorHandler, true);
- "ReferenceError: Can't find variable: useForm This error is located at" ->
isFatalfor this error isfalse - "Warning: Can't perform a React state update on an unmounted component" ->
isFatalfor this warning isfalse
the first error breaks the application while the second not.
Is there any way to determine whether the error breaks the app or not?