React native mutation error catching #670
-
Not sure that it's not my way of handling things but : However, there is still an unhandled promise that breaks my React Native app when I call the mutation on some error prone route. Any idea why? If I use my fetcher function directly I do not have this problem. Oh, and I am running latest v.2 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yep. You need to set the logger to be console.log for errors, not console.error. Redbox error display on RN pretty aggressive. |
Beta Was this translation helpful? Give feedback.
-
Oh, i missed that ! Cheers for a quick reply !
Le mar. 30 juin 2020 à 16:52, Tanner Linsley <[email protected]> a
écrit :
… Yep. You need to set the logger to be console.log for errors, not
console.error. Redbox error display on RN pretty aggressive.
https://github.com/tannerlinsley/react-query
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#670 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJFT5CJ3BPDFBAZ44J6XKTRZH32RANCNFSM4OMAZQ2Q>
.
|
Beta Was this translation helpful? Give feedback.
Yep. You need to set the logger to be console.log for errors, not console.error. Redbox error display on RN pretty aggressive.
https://github.com/tannerlinsley/react-query