React·100 questions

What is react-query (TanStack Query) and when is it needed?

Answer
Manages server state: cache, refetch, deduplication.
Simplifies loading/error states.
Has invalidation and optimistic updates.
Eliminates much manual code.
Does not replace client-side state for UI.
Was this answer helpful?

More questions in this topic

Related questions from other topics