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?