TanStack Query

Official website

TanStack Query manages server state in React with caching, background refetching, and optimistic updates.

How I use it

I use TanStack Query for API data in the UI — deduplicating requests, handling loading and error states, and keeping lists fresh.