Skip to content
Discussion options

You must be logged in to vote

Hi 👋

You don't need to throw an error. You could also reject the promise.

The setLogger function has been removed but you can still provide custom logging functions when instantiating the query client. Please see https://tanstack.com/query/v4/docs/react/guides/migrating-to-react-query-4#setlogger-is-removed.

In version 4, errors are no longer logged to the console in production. They are still logged in other environments. Please see https://tanstack.com/query/v4/docs/react/guides/migrating-to-react-query-4#logging-in-production

Providing a noop error logging function removes the error 🙂

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@LauSam09
Comment options

@louis-young
Comment options

@LauSam09
Comment options

@louis-young
Comment options

@LauSam09
Comment options

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