Almost every React application needs to fetch data from a server and cache the result between renders.
Traditionally, in-memory API Caching is something that has been done in React applications either on a per-component-level, which lead to application state running out of sync, or using a global state like Redux, which required a lot of hand-written code.
RTK Query is part of the official Redux Toolkit and provides an application-global API cache that abstracts most of that hand-written code away, leading to a lot more readable code bases.
It also offers a lot of advanced features like auto-generated hooks
In this course, you will learn about
createApi
to define multiple endpoints to interact with your APIuseQuery
hooks and how to use them in your applicationbaseQuery
functionApiProvider
or a pre-existing Redux storeA Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.
I highly recommend it for the crash course.
Hands on example with the basics to understand RTK Query.
The concepts are introduced gradually, going from a hardcoded API to a full fledged cache enabled API.
Simple and clear explanation of RTK query
great instructor. clear and concise
Cool tut~ I really love refactoring step by step
Short and nice introduction! Thanks!
A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.