RTK Query is a powerful new way to model data fetching and caching in Redux applications. It’s built on top of Redux Toolkit, but hides almost any interaction with reducers, selectors or thunks behind custom hooks generated specifically for your API.
If your redux application relies heavily on data coming in from over the network, there’s a good chance RTK Query is worth adopting. It will allow you to remove significant chunks of code while also giving you new tools for error handling and cache invalidation that will make your users smile. Apply what I teach in this course and you won’t have to think about thunks ever again.
Sample code can be found here: https://github.com/xjamundx/egghead-rtkq
Jamund is a UI Engineer that has a passion for sharing his journey and knowledge with others.
Throughout his career, Jamund benefitted from learning the technologies that were vital to business as well as keeping up with the industry. He has been able to leverage what he learns into opportunities that have propelled his career forward.
As a self-taught engineer, he wants to share as much knowledge as he can so others can level up their own careers as he has with himself.