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

Function defaultShouldDehydrateQuery

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

Source from the content-addressed store, hash-verified

217 * @returns `true` if the query's status is `'success'`.
218 */
219export function defaultShouldDehydrateQuery(query: Query) {
220 return query.state.status === 'success'
221}
222
223/**
224 * 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