-
I need to create multiple query clients with different loggers. Looking at the code, every single place where The backward compatibility can be preserved by making the global one the default value for the relevant option field. This proposal looks very trivial to implement; while also being more sensible and more principled than a global shared state. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
which options are we talking about here? I think it should be an option on the i would generally agree that this is a good idea - would also make it easier to stub out loggers in testing. If you think that works out and we can also get rid of the shared global state, please open a PR against v4 (the |
Beta Was this translation helpful? Give feedback.
which options are we talking about here? I think it should be an option on the
QueryClient
. Are you sure there is access to the QueryCient everywhere?i would generally agree that this is a good idea - would also make it easier to stub out loggers in testing. If you think that works out and we can also get rid of the shared global state, please open a PR against v4 (the
alpha
branch) 👍