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:219](https://github.com/TanStack/query/blob/main/packages/query-core/src/hydration.ts#L219)
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β
21The query to check.
22β
23## Returns
24β
25`boolean`
26β
27`true` if the query's status is `'success'`.