Skip to content

The best TanStack Query alternatives

8 tools that do a similar job to TanStack Query, 8 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

TanStack Query

A library for fetching, caching, and updating data from servers in web apps.

  1. 1

    SWR

    Open source · MIT · ★ 32.5k

    A React hook library for fetching data, with caching and automatic refresh.

    Best for: React developers who fetch data from APIs in components; Projects that want built-in caching and request deduplication

  2. 2

    Apollo Client

    Open source · MIT · ★ 19.8k

    A JavaScript and TypeScript library for loading and caching GraphQL data in web apps.

    Best for: Developers building React apps that query a GraphQL API; Teams using TypeScript who want typed GraphQL operations

  3. 3

    ky

    Open source · MIT · ★ 17.1k

    A tiny HTTP client for JavaScript that wraps the Fetch API with simpler calls and error handling.

    Best for: JavaScript or TypeScript developers who already use fetch and want less boilerplate; Projects that call a REST API and want JSON parsing and error handling in one call

  4. 4

    why-did-you-render

    Open source · MIT · ★ 12.5k

    A development-only tool that logs React re-renders that may be avoidable, so you can find slow spots.

    Best for: React developers investigating slow screens with many memoized or pure components; Teams debugging why a large memo component keeps re-rendering after a prop like an inline style object changes

  5. 5

    react-loadable

    Open source · MIT · ★ 16.5k

    A React helper that loads components on demand using promises, to shrink your initial bundle.

    Best for: React developers whose main JavaScript bundle has grown large; Apps that use Webpack and want component-level code splitting

  6. 6

    Zustand

    Open source · MIT · ★ 58.9k

    A small React state-management library built on hooks, with no providers needed.

    Best for: React developers who want simpler shared state than Redux; Apps that need state shared across many components without wrapping them in providers

  7. 7

    Mantine

    Open source · MIT · ★ 31.9k

    A React component library with 100+ UI components and 80+ hooks, MIT licensed.

    Best for: React developers building web apps who want many components out of the box; Teams that want dark mode and theming support built in

  8. 8

    TanStack Table

    Open source · MIT · ★ 28.5k

    Headless library for building customizable data tables in TypeScript and JavaScript.

    Best for: Developers building custom data tables in React, Vue, Solid, Svelte or another supported framework; Teams that already have a design system and want a table that matches it

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to TanStack Query. We don't take payment for placement.