3 ms·
Exact same experience here. We were using Redux to manage server-side data and switching to React Query massively simplified everything. It appears that managin
by ggregoire 4y ago
Exact same experience here. We were using Redux to manage server-side data and switching to React Query massively simplified everything. It appears that managing server-side data in an efficient way is an insanely complicated topic and React Query just solved everything about it that I can think of.
- acemarke 4y agoYeah, both the React Query and Redux maintainers agree that you shouldn't be writing data fetching and caching logic yourself. That's why we recently added a new "RTK Query" data fetching and caching API to Redux Toolkit, so that if you're using Redux it handles that work for you: - https://redux.js.org/tutorials/essentials/part-7-rtk-query-basics https://redux.js.org/tutorials/essentials/part-7-rtk-query-b... - https://redux-toolkit.js.org/rtk-query/overview https://redux-toolkit.js.org/rtk-query/overview and if you're just using React, definitely look at React Query.
- ggregoire 4y agoYes we chose Redux 6 years ago for data fetching and caching when there wasn't as many alternatives as today!
- acemarke 4y agoHah, yeah, the ecosystem landscape has definitely changed over the last few years :)
- buchanaf 4y agoRTKQ is terrific. Between things like that and MUI, the level of productivity you can achieve really is amazing. Also, thanks for your work -- really, really appreciate it.