TanStack Query
Server data fetching, caching and synchronization.
LibraryOpen source
Manages server data with caching, background revalidation, pagination and ready-made loading and error states.
When to use
In any app that fetches data from APIs and wants automatic caching and refreshing.
When to avoid
In apps with almost no API calls, or that already handle this on the server (Server Components).
Related
From the same area, with a close purpose.
Minimal global state for React, with no boilerplate.
LibraryOpen source★ 58.9KPerformant, simple forms in React.
LibraryOpen source★ 44.9KThe official, modern way to use Redux.
LibraryOpen source★ 11.2KReact framework with SSR, routing and edge.
FrameworkOpen source★ 143.2K