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

Function withHydrationKey

packages/angular-query/src/providers.ts:198–207  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

196 * @returns A feature that stores this client's cache under the supplied key.
197 */
198export function withHydrationKey(key: string): QueryFeature {
199 return queryFeature(
200 makeEnvironmentProviders([
201 {
202 provide: INTERNAL_TANSTACK_QUERY_HYDRATION_TRANSFER_KEY,
203 useValue: makeStateKey<DehydratedState>(key),
204 },
205 ]),
206 )
207}
208
209/**
210 * Disables `TransferState` hydration and dehydration for the current environment injector.

Calls 1

queryFeatureFunction · 0.85

Tested by

no test coverage detected