(key: string)
| 196 | * @returns A feature that stores this client's cache under the supplied key. |
| 197 | */ |
| 198 | export 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. |
no test coverage detected