Replies: 2 comments 4 replies
-
can you show this behaviour in a codesandbox please? it might be worth noticing that in v4, error logging will be done in development mode only, and you can also provide a different logger that doesn't log errors at all. |
Beta Was this translation helpful? Give feedback.
4 replies
-
PR: #3554 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have these hooks:
When I go to a page where the
useGetMessage
hook is used, I first of all don't really expect any errors in the console, since they should be handled byreact-query
and not "bubble up" anywhere? But if that's not the way I expect, I would at least expect there to be no more than one of those errors in the console?Instead I get 6(!) log messages with that error. The error object seems to be thrown from where I expect it to (error starts with
at Object.select messages.ts:76
, which is the line of mythrow
above), but the log messages seem to come fromqueryObserver.js:331
. If I also have the react query dev tools open, I seem to get yet another 6 error messages logged to the console fromreact_devtools_backend.js:3973
. So that's 12(!) error messages flooding the console for every 1 actual error (from my point of view as a developer).Is this "how it should be"? Finding it very noisy and annoying 🤔
Beta Was this translation helpful? Give feedback.
All reactions