State Management · Junior · Question 39 of 75
What is TanStack Query (React Query) for?
- ✓Correct answer: Fetching, caching and keeping server data up to date
- 2Building SQL queries on the client
- 3Routing between pages
Explanation
It handles loading and error states, caching, deduplication, background refetching, retries, pagination and mutations - work that's tedious and error-prone with useEffect + useState.