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
@@ -72,7 +72,7 @@ provideQueryClient(() => new QueryClient());
72
72
and then use with
73
73
74
74
```ts
75
-
import { injectQueryClient } from'@ngneat/query';
75
+
import { injectQueryClient } from'@openng/query';
76
76
77
77
...
78
78
#queryClient=injectQueryClient();
@@ -85,7 +85,7 @@ import { injectQueryClient } from '@ngneat/query';
85
85
Use the `injectQuery` function. Using this function is similar to the [official](https://tanstack.com/query/v5/docs/guides/queries) function.
86
86
87
87
```ts
88
-
import { injectQuery } from'@ngneat/query';
88
+
import { injectQuery } from'@openng/query';
89
89
90
90
@Injectable({ providedIn: 'root' })
91
91
exportclassTodosService {
@@ -108,7 +108,7 @@ export class TodosService {
108
108
> The function should run inside an injection context
109
109
110
110
For methods that require a `queryFn` parameter like
111
-
`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
+
`ensureQueryData`, `fetchQuery`, `prefetchQuery`, `fetchInfiniteQuery` and `prefetchInfiniteQuery` it's possible to use both Promises and Observables. See an example [here](https://github.com/openng/query/blob/main/src/app/prefetch-page/resolve.ts#L9).
112
112
113
113
#### Component Usage - Observable
114
114
@@ -165,7 +165,7 @@ export class TodosPageComponent {
165
165
If you inline query options into `query`, you'll get automatic type inference. However, you might want to extract the query options into a separate function to share them between `query` and e.g. `prefetchQuery`. In that case, you'd lose type inference. To get it back, you can use `queryOptions` helper:
166
166
167
167
```ts
168
-
import { queryOptions } from'@ngneat/query';
168
+
import { queryOptions } from'@openng/query';
169
169
170
170
function groupOptions() {
171
171
returnqueryOptions({
@@ -203,7 +203,7 @@ export class GroupsService {
203
203
Use the `injectInfiniteQuery` function. Using this function is similar to the [official](https://tanstack.com/query/v5/docs/guides/infinite-queries) function.
Unlike queries, mutations are typically used to create/update/delete data or perform server side-effects. For this purpose, The library exports the `injectMutation`` function.
229
229
230
230
```ts
231
-
import { injectMutation } from'@ngneat/query';
231
+
import { injectMutation } from'@openng/query';
232
232
233
233
@Injectable({ providedIn: 'root' })
234
234
exportclassTodosService {
@@ -310,14 +310,14 @@ export class TodosComponent {
310
310
}
311
311
```
312
312
313
-
A more in depth [example](https://github.com/ngneat/query/blob/next/src/app/mutation-page/) can be found on our playground.
313
+
A more in depth [example](https://github.com/openng/query/blob/next/src/app/mutation-page/) can be found on our playground.
314
314
315
315
## Query Global Options
316
316
317
317
You can inject a default config for the underlying `@tanstack/query` instance by using the `provideQueryClientOptions({})` function.
Copy file name to clipboardExpand all lines: devtools/README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
-
# ngneat/query-devtools
1
+
# openng/query-devtools
2
2
3
3
Wave your hands in the air and shout hooray because Angular Query comes with dedicated devtools! 🥳
4
4
5
5
When you begin your Angular Query journey, you'll want these devtools by your side. They help visualize all of the inner workings of Angular Query and will likely save you hours of debugging if you find yourself in a pinch!
6
6
7
-
Install the `@ngneat/query-devtools` package. Lazy load and use it only in `development` environment:
7
+
Install the `@openng/query-devtools` package. Lazy load and use it only in `development` environment:
0 commit comments