mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* chore(*): update '@tanstack/typedoc-config' to v0.3.4 and load its custom settings plugin by package export * docs(framework/*/reference): regenerate reference docs with '@tanstack/typedoc-config' v0.3.4 * docs(framework/*/reference): regenerate reference docs * docs(framework/*/reference): regenerate reference docs
848 B
848 B
| id | title |
|---|---|
| injectQueryClient | injectQueryClient |
function injectQueryClient(injectOptions?: InjectOptions & object): QueryClient;
Defined in: packages/angular-query-experimental/src/inject-query-client.ts:18
Injects a QueryClient instance and allows passing a custom injector.
Parameters
injectOptions?
InjectOptions & object = {}
Type of the options argument to inject and optionally a custom injector.
Returns
The QueryClient instance.
Deprecated
Use inject(QueryClient) instead.
If you need to get a QueryClient from a custom injector, use injector.get(QueryClient).
Example
const queryClient = injectQueryClient();