MCPcopy Create free account
hub / github.com/TanStack/query / defaultShouldDehydrateQuery

Function defaultShouldDehydrateQuery

packages/query-core/src/hydration.ts:186–188  ·  view source on GitHub ↗
(query: Query)

Source from the content-addressed store, hash-verified

184 * `'success'`.
185 */
186export function defaultShouldDehydrateQuery(query: Query) {
187 return query.state.status === 'success'
188}
189
190/**
191 * Dehydrates a `QueryClient`'s cache (queries and mutations) into a plain, serializable `DehydratedState`,

Callers 5

makeQueryClientFunction · 0.85
makeQueryClientFunction · 0.85
makeQueryClientFunction · 0.85
makeQueryClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected