3 ms·
Yeah, 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 n
by acemarke 4y ago
Yeah, 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.