Docs
CodeRabbit
Cloudflare
Railway
Netlify
Clerk
SerpAPI
OpenRouter
WorkOS
AG Grid
Prisma
Unkey
Electric
Sentry
CodeRabbit
Cloudflare
Railway
Netlify
Clerk
SerpAPI
OpenRouter
WorkOS
AG Grid
Prisma
Unkey
Electric
Sentry
API Reference

useMutationState

Function: useMutationState()

ts
function useMutationState<TResult>(options, queryClient?): TResult[];
function useMutationState<TResult>(options, queryClient?): TResult[];

Defined in: preact-query/src/useMutationState.ts:41

Type Parameters

TResult

TResult = MutationState<unknown, Error, unknown, unknown>

Parameters

options

MutationStateOptions<TResult> = {}

queryClient?

QueryClient

Returns

TResult[]