Skip to content
Discussion options

You must be logged in to vote

The documentation appears to show the ability to have custom logging, but it's unclear as to what would be logged and it makes me think it would be simply logs from network errors and would not contain react-query cache data.

That's right - the logging that we do is simply about internal warnings and failed fetches. In v4, we'll also only do the logging in development mode.

We currently use redux and are able to utilize middleware to log out to LogRocket whenever redux state is changed. Essentially we would like to know if react-query has the same ability.

You can subscribe to the queryCache and receive events that tell you that something happened - it's what the devtools are using in…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bsell93
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