You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,7 @@ export class TodosService {
109
109
For methods that require a `queryFn` parameter like
110
110
`ensureQueryData`, `fetchQuery`, `prefetchQuery`, `fetchInfiniteQuery` and `prefetchInfiniteQuery` it's possible to use both Promises and Observables. See an example [here](https://github.com/ngneat/query/blob/main/src/app/prefetch-page/resolve.ts#L9).
111
111
112
+
112
113
#### Component Usage - Observable
113
114
114
115
To get an observable use the `result$` property:
@@ -626,6 +627,50 @@ class TodoComponent {
626
627
}
627
628
```
628
629
630
+
## Custom Queries objects
631
+
632
+
All injected queries objects got from the following inject functions could be overwritten by using `provideQueryConfig` function:
633
+
-`injectQuery()`
634
+
-`injectMutation()`
635
+
-`injectIsMutating()`
636
+
-`injectIsFetching()`
637
+
-`injectInfiniteQuery()`
638
+
639
+
All `provideQueryConfig` parameter's properties are optional, and you can use raw object or object factory.
0 commit comments