Installation
Install effect-api-query and its peer dependencies.
Install the package and TanStack Query Core:
pnpm add effect-api-query @tanstack/query-coreWith pnpm’s default peer installation enabled, this also installs the exact Effect release required
by the package. If your application already pins Effect or disables automatic peer installation,
install the Effect version from the package’s peerDependencies and resolve any peer mismatch
before continuing. The package manifest
and workspace catalog
are the source for supported and tested versions.
React applications also need @tanstack/react-query, matching their Query Core version:
pnpm add @tanstack/react-queryUse strict TypeScript checking, ESM, and an ES2022-capable application. See the compatibility reference for the tested compiler and framework integrations.
Continue with the RPC quick start or HTTP quick start.