Skip to content

Commit 3ac2ac8

Browse files
ci: apply automated fixes
1 parent 963801c commit 3ac2ac8

2 files changed

Lines changed: 19 additions & 15 deletions

File tree

docs/framework/angular/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ computed(() => {
174174

175175
## Typing Query Options
176176

177-
If you inline query options into `injectQuery`, you'll get automatic type inference. However, you might want to extract the query options into a separate function to share them between `injectQuery` and e.g. `queryClient.query`, or manage them in a service. In that case, you'd lose type inference. To get it back, you can use the `queryOptions` helper:
177+
If you inline query options into `injectQuery`, you'll get automatic type inference. However, you might want to extract the query options into a separate function to share them between `injectQuery` and e.g. `queryClient.query`, or manage them in a service. In that case, you'd lose type inference. To get it back, you can use the `queryOptions` helper:
178178

179179
```ts
180-
import { noop } from "@tanstack/angular-query-experimental"
180+
import { noop } from '@tanstack/angular-query-experimental'
181181

182182
@Injectable({
183183
providedIn: 'root',

docs/framework/vue/guides/prefetching.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ If you're lucky enough, you may know enough about what your users will do to be
88
[//]: # 'ExamplePrefetching'
99

1010
```tsx
11-
import { noop } from "@tanstack/vue-query"
11+
import { noop } from '@tanstack/vue-query'
1212

1313
const prefetchTodos = async () => {
1414
// The results of this query will be cached like a normal query
15-
await queryClient.query({
16-
queryKey: ['todos'],
17-
queryFn: fetchTodos,
18-
}).catch(noop)
15+
await queryClient
16+
.query({
17+
queryKey: ['todos'],
18+
queryFn: fetchTodos,
19+
})
20+
.catch(noop)
1921
}
2022
```
2123

@@ -34,17 +36,19 @@ Infinite Queries can be prefetched like regular Queries. Per default, only the f
3436
[//]: # 'ExampleInfiniteQuery'
3537

3638
```tsx
37-
import { noop } from "@tanstack/vue-query"
39+
import { noop } from '@tanstack/vue-query'
3840

3941
const prefetchProjects = async () => {
4042
// The results of this query will be cached like a normal query
41-
await queryClient.infiniteQuery({
42-
queryKey: ['projects'],
43-
queryFn: fetchProjects,
44-
initialPageParam: 0,
45-
getNextPageParam: (lastPage, pages) => lastPage.nextCursor,
46-
pages: 3, // prefetch the first 3 pages
47-
}).catch(noop)
43+
await queryClient
44+
.infiniteQuery({
45+
queryKey: ['projects'],
46+
queryFn: fetchProjects,
47+
initialPageParam: 0,
48+
getNextPageParam: (lastPage, pages) => lastPage.nextCursor,
49+
pages: 3, // prefetch the first 3 pages
50+
})
51+
.catch(noop)
4852
}
4953
```
5054

0 commit comments

Comments
 (0)