First of all: I love this library. 鉂わ笍
Failed queryFns will be catched and then logged to the console with console.error.
I'm using react-query with React Native, which shows all console.error as a big red box in development mode. I expect that some of my requests can throw an error (e.g. if it's an 401 Unauthorized). But even if I'm expecting and handling those errors, they will appear as big red box because it has been logged with console.error.

I could also imagine that when I'm using react-query inside the browser, I maybe don't want errors to be logged to the console.
I'm currently overriding console.error to ignore all those errors. 馃檲
Maybe logging could be an opt-out? Or opt-in, like a global debug mode?
Now you can replace the console object used internally to log, warn and error. Enjoy!
Most helpful comment
Now you can replace the
consoleobject used internally tolog,warnanderror. Enjoy!