Skip to content

React Native / Expo redbox problem #320

Discussion options

You must be logged in to vote

One of the main reasons that the errors are caught and displayed by React Query is because most of the time, these errors are ocurring outside of an async flow or near the render function. If they are not caught and displayed, then there is a good chance that they will be swallowed up or displayed as uncaughtPromiseRejection notices. While I agree that it's a suboptimal experience out of the box, it's the best we can do until we can reliably ship the library with ReactNative specific defaults, something I am not familiar with doing right now. In a perfect world, React Query would detect that it is running in a RN environment and default the logger appropriately so as to not set off the ov…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kelleyvanevert
Comment options

Answer selected by kelleyvanevert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants