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

defaultShouldDehydrateMutation.md

27 lines622 Bytes

1---
2id: defaultShouldDehydrateMutation
3title: defaultShouldDehydrateMutation
4---
5​
6```ts
7function defaultShouldDehydrateMutation(mutation: Mutation): boolean;
8```
9​
10Defined in: [packages/query-core/src/hydration.ts:209](https://github.com/TanStack/query/blob/main/packages/query-core/src/hydration.ts#L209)
11​
12The default `shouldDehydrateMutation` predicate used by `dehydrate`. Only dehydrates mutations that are
13currently paused (e.g. paused by `networkMode` while offline).
14​
15## Parameters
16​
17### mutation
18​
19[`Mutation`](../classes/Mutation.md)
20​
21The mutation to check.
22​
23## Returns
24​
25`boolean`
26​
27`true` if the mutation is paused.