RTK Query: Endpoints & Auto-Caching
Define query and mutation endpoints with createApi and let RTK Query manage caching.
Welcome
In this lesson you will define query and mutation endpoints with RTK Query's createApi and let it manage caching, loading states, and data fetching automatically.
What Is RTK Query?
RTK Query is a data fetching and caching layer built into Redux Toolkit. It eliminates manual loading/error state management, deduplicates requests, and caches responses by endpoint and argument.
All lessons in this course
- Redux Toolkit Slices & createSlice
- Async Logic with createAsyncThunk
- RTK Query: Endpoints & Auto-Caching
- Optimistic Updates & Cache Invalidation