Skip to content

Does react-query act as a state management library? Can I use it with Redux? #329

Answered by tannerlinsley
ghost asked this question in General
Discussion options

You must be logged in to vote

React Query is a type of state manager, specifically designed to manage asynchronous state that you get from outside of your app, so server-state, API state, or anything else that is not local client state. With that said, it's easy and even encouraged to keep use React Query along side a global state manager for your client state.

Its very common for existing applications that after moving their server state to React Query, their client state is extremely small and doesn't even need an external library like Redux. However, some applications actually do have a lot of local client state to manage and something like Redux is warranted.

I will link to a talk about this very subject very soon…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Miteshdv
Comment options

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