function withHydrationKey(key: string): QueryFeature;Defined in: packages/angular-query/src/providers.ts:173
Sets a non-default serialization key for this injector's QueryClient cache (server dehydrate / browser hydrate via TransferState). Use this when you have multiple QueryClient instances so each has its own key. The default key applies when you do not add this feature.
providers: [
provideTanStackQuery(
() => new QueryClient(),
withHydrationKey('my-secondary-query-cache'),
),
]string
A unique string for this client's TransferState entry.
A feature that stores this client's cache under the supplied key.