State Management · Middle · Question 50 of 75
How does RTK Query compare to TanStack Query?
- ✓Correct answer: Similar goals; RTK Query lives in the Redux store and fits apps already on Redux
- 2RTK Query only works with GraphQL, TanStack Query only with REST
- 3TanStack Query requires Redux to store its cache
Explanation
Both cache server data with deduplication, invalidation and optimistic updates. RTK Query uses tags, its cache is visible in Redux DevTools and integrates with slices; TanStack Query has a standalone cache, query keys and a broad feature set (infinite queries, suspense).