Console.error when API fails #622
-
Describe the bug Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
When using in React Native, you'll need to override the Logger, otherwise, it will cause redboxing all over the place. import { setConsole } from 'react-query'
setConsole({
log: console.log,
warn: console.log,
error: console.log,
}) |
Beta Was this translation helpful? Give feedback.
-
Just what I needed. Thanks a ton 🙌 |
Beta Was this translation helpful? Give feedback.
-
I've been scratching my head for hours thinking what went wrong... adding it in the documentation would be a lot better or just add it by default |
Beta Was this translation helpful? Give feedback.
When using in React Native, you'll need to override the Logger, otherwise, it will cause redboxing all over the place.