Skip to main content

defaultShouldDehydrateMutation

还没翻译译自英文(tanstack.com)本页 10 段都还没译

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.