3 ms·
React Query is pretty cool. I haven't used it in my own projects, but based on all the discussion I've seen, it looks like a solid choice. Meanwhile, we in the
by acemarke 6y ago
React Query is pretty cool. I haven't used it in my own projects, but based on all the discussion I've seen, it looks like a solid choice.
Meanwhile, we in the Redux team recently published an alpha library that we've dubbed "RTK Query" [0]. It takes inspiration from data fetching libraries like React Query, SWR, Apollo, and Urql, and provides similar sophisticated data fetching and caching capabilities. But, it's built on top of Redux Toolkit, which enables integration with the rest of the Redux addon ecosystem and the Redux DevTools. Once we've finalized the design of the new APIs, we're going to merge them back into Redux Toolkit itself, so that they'll just be additional exports from Redux Toolkit. I'm really excited about how this will let Redux users simplify their code, and wrote a comment over on Reddit today about how RTK Query changes things for Redux users [1].
[0] https://rtk-query-docs.netlify.app https://rtk-query-docs.netlify.app
[1] https://www.reddit.com/r/reactjs/comments/kw9cr3/recently_picked_up_react_js_with_hooks_and_just/gj4gan4/?context=3 https://www.reddit.com/r/reactjs/comments/kw9cr3/recently_pi...
- ibejoeb 6y agoNice, gonna check out RTK now. Thanks.
- acemarke 6y agoSure. For RTK specifically, I recommend reading the "Modern Redux with Redux Toolkit" section of the recently rewritten "Redux Fundamentals" core docs tutorial, which shows how RTK simplifies common Redux usage patterns: https://redux.js.org/tutorials/fundamentals/part-8-modern-redux https://redux.js.org/tutorials/fundamentals/part-8-modern-re... And the companion "Redux Essentials" tutorial teaches Redux Toolkit as the default way to write Redux logic while building a "real world"-style example app: https://redux.js.org/tutorials/essentials/part-1-overview-concepts https://redux.js.org/tutorials/essentials/part-1-overview-co...
- ibejoeb 6y agoThanks for all this great stuff. I use redux-toolkit already on a large application at a big sales automation company, and it works great, so looking forward to implementing some things with RTK.