Open History to see the last commit
1---
2id: defaultShouldDehydrateQuery
3title: defaultShouldDehydrateQuery
4---
5β
6```ts
7function defaultShouldDehydrateQuery(query: Query): boolean;
8```
9β
10Defined in: [packages/query-core/src/hydration.ts:186](https://github.com/TanStack/query/blob/main/packages/query-core/src/hydration.ts#L186)
11β
12The default `shouldDehydrateQuery` predicate used by `dehydrate`. Only dehydrates queries whose status is
13`'success'`.
14β
15## Parameters
16β
17### query
18β
19[`Query`](../classes/Query.md)
20β
21## Returns
22β
23`boolean`