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

defaultShouldDehydrateQuery.md

23 lines491 Bytes

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`