Skip to content

Commit 31c7f37

Browse files
docs(angular-query): fix invalid imports and syntax error in guide examples (#11090)
* docs(angular-query): fix three broken examples in the guides * ci: apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 96fbd7d commit 31c7f37

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

docs/framework/angular/guides/disabling-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class TodosComponent {
7070
[//]: # 'Example3'
7171

7272
```angular-ts
73-
import { skipToken, injectQuery } from '@tanstack/query-angular'
73+
import { skipToken, injectQuery } from '@tanstack/angular-query-experimental'
7474
7575
@Component({
7676
selector: 'todos',

docs/framework/angular/guides/query-functions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ ref: docs/framework/react/guides/query-functions.md
88

99
```ts
1010
injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchAllTodos }))
11-
injectQuery(() => ({ queryKey: ['todos', todoId], queryFn: () => fetchTodoById(todoId) })
11+
injectQuery(() => ({
12+
queryKey: ['todos', todoId],
13+
queryFn: () => fetchTodoById(todoId),
14+
}))
1215
injectQuery(() => ({
1316
queryKey: ['todos', todoId],
1417
queryFn: async () => {

docs/framework/angular/guides/query-retries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const result = injectQuery(() => ({
3333
import {
3434
QueryCache,
3535
QueryClient,
36-
QueryClientProvider,
36+
provideTanStackQuery,
3737
} from '@tanstack/angular-query-experimental'
3838

3939
const queryClient = new QueryClient({

0 commit comments

Comments
 (0)