File tree 1 file changed +5
-4
lines changed
packages/angular-query-experimental/src
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ import type { InjectOptions } from '@angular/core'
4
4
5
5
/**
6
6
* Injects a `QueryClient` instance and allows passing a custom injector.
7
+ * @param injectOptions - Type of the options argument to inject and optionally a custom injector.
8
+ * @returns The `QueryClient` instance.
9
+ * @public
10
+ * @deprecated Use `inject(QueryClient)` instead.
11
+ * If you need to get a `QueryClient` from a custom injector, use `injector.get(QueryClient)`.
7
12
*
8
- * You can also use `inject(QueryClient)` if you don't need to provide a custom injector.
9
13
*
10
14
* **Example**
11
15
* ```ts
12
16
* const queryClient = injectQueryClient();
13
17
* ```
14
- * @param injectOptions - Type of the options argument to inject and optionally a custom injector.
15
- * @returns The `QueryClient` instance.
16
- * @public
17
18
*/
18
19
export function injectQueryClient (
19
20
injectOptions : InjectOptions & { injector ?: Injector } = { } ,
You can’t perform that action at this time.
0 commit comments