Skip to main content

defaultShouldDehydrateQuery

还没翻译译自英文(tanstack.com)本页 10 段都还没译

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'.