3 ms·
Redux is great, sure. But it's not a great fit for all applications, or maybe even most. The largest need for state management in most react applications is fo
by IceDane 3y ago
Redux is great, sure. But it's not a great fit for all applications, or maybe even most.
The largest need for state management in most react applications is for so-called "server state", which is really just data from your backend. RQ lets you deal with that elegantly without buying into any other major state management solution like redux.
If you are already using redux for other reasons, RTK Query is a no-brainer. But if you aren't, something like RQ is probably a better choice.
- audessuscest 3y agoReact-query does have a state management, like redux. You can use RTK "the same way" than react-query, and it comes with more if needed, that's why I don't see real reason to prefer RQ over it Edit: Also, IMO RTK enforce cleaner code/structure than RQ