Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

defaultShouldDehydrateMutation.md

27 lines622 Bytes

function defaultShouldDehydrateMutation(mutation: Mutation): boolean;

Defined in: packages/query-core/src/hydration.ts:209

The default shouldDehydrateMutation predicate used by dehydrate. Only dehydrates mutations that are currently paused (e.g. paused by networkMode while offline).

Parameters

mutation

Mutation

The mutation to check.

Returns

boolean

true if the mutation is paused.