TanStack/query
π€ Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
What it is
An async state management library built to simplify fetching, caching, synchronizing, and updating server state. Protocolβagnostic fetching (REST, GraphQL, promises, etc.) Caching, refetching, pagination & infinite scroll Mutations, dependent queries & background updates Prefetching, cancellation & React Suspense support
When to use it
Reach for query when you are choosing the foundation of a web app β framework, router, bundler or data layer β it's written in TypeScript and fits stacks tagged async, cache, data, fetch.