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

defaultShouldDehydrateQuery.md

27 lines558 Bytes

function defaultShouldDehydrateQuery(query: Query): boolean;

Defined in: packages/query-core/src/hydration.ts:219

The default shouldDehydrateQuery predicate used by dehydrate. Only dehydrates queries whose status is 'success'.

Parameters

query

Query

The query to check.

Returns

boolean

true if the query's status is 'success'.