T
TanStack3y ago
typical-coral

Quick question, can I use react-query to not only load data, but to manage state instead of redux?

I am trying to manage users channellist where I will be fetching and constantly updating the channel state such as what was the last message, read receipts etc. it will be updated in realtime, so whenever I receive a new notification, I would use queryclient to set the data with the new payload. Is this common use case?
No description
1 Reply
apparent-cyan
apparent-cyan3y ago
You might find some interesting info here: https://tkdodo.eu/blog/react-query-as-a-state-manager
React Query as a State Manager
Everything you need to know to make React Query your single source of truth state manager for your async state

Did you find this page helpful?