Skip to content
effect-api-query

effect-api-query

Use your Effect RPC or HttpApi definition to query, mutate, and cache data with TanStack Query.

effect-api-query turns your Effect RPC group or HttpApi definition into typed query options, mutation options, and cache keys. Pass them directly to TanStack Query while your application controls its client, cache policies, and resource lifetime.

  • Queries and mutations for unary RPCs and buffered HTTP endpoints.
  • Infinite and conditional queries for both adapters.
  • Accumulated streams and live queries for RPCs.
  • Semantic cache keys for prefetching, cache updates, and invalidation.
  • Typed execution failures that retain the complete Effect Cause.