Open History to see the last commit
1---
2id: defaultShouldDehydrateQuery
3title: defaultShouldDehydrateQuery
4---
5β
6<!-- DO NOT EDIT: this page is autogenerated from the type comments -->
7β
8```ts
9function defaultShouldDehydrateQuery(query: Query): boolean;
10```
11β
12Defined in: [packages/query-core/src/hydration.ts:219](https://github.com/TanStack/query/blob/main/packages/query-core/src/hydration.ts#L219)
13β
14The default `shouldDehydrateQuery` predicate used by `dehydrate`. Only dehydrates queries whose status is
15`'success'`.
16β
17## Parameters
18β
19### query
20β
21[`Query`](../classes/Query.md)
22β
23The query to check.
24β
25## Returns
26β
27`boolean`
28β
29`true` if the query's status is `'success'`.