@sentry/react-native fails to catch error triggered from useEffect
https://github.com/getsentry/sentry-javascript/issues/2785 I found a problem in @sentry/react-native as same as the above link
when I write some code like this:
useEffect(()=>{ throw new Error('here is Error !'); },[])
Sentry catch failed, looks like the same with the above link
Thank you for the message, we will take a look at it.
Hi, I've tried the following in our sample app and the error is reported to Sentry as expected.
const App = () => {
useEffect(() => {
throw new Error('here is Error !');
}, [])
return (
...
);
};
Could you provide a minimal reproducible example?
Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed.