Skip to content

Commit 1e8cdc6

Browse files
committed
Merge branch 'feature/angular-stable' of github.com:arnoud-dv/query into feature/angular-stable
2 parents 95f5bb3 + 2f9a760 commit 1e8cdc6

File tree

3 files changed

+7
-20
lines changed

3 files changed

+7
-20
lines changed

docs/framework/angular/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Installation
55

66
### NPM
77

8-
TanStack Angular Query is compatible with Angular v16 and higher. See [Angular Version Compatibility](./angular-version-compatibility) for more details.
8+
TanStack Angular Query is compatible with Angular v16 and higher. See [Angular Version Compatibility](./angular-version-compatibility.md) for more details.
99

1010
```bash
1111
npm i @tanstack/angular-query

docs/framework/angular/reference/functions/providetanstackquery.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ Allows to configure a `QueryClient` and optional features such as developer tool
1616
**Example - standalone**
1717

1818
```ts
19-
import {
20-
provideTanStackQuery,
21-
QueryClient,
22-
} from '@tanstack/angular-query'
19+
import { provideTanStackQuery, QueryClient } from '@tanstack/angular-query'
2320
2421
bootstrapApplication(AppComponent, {
2522
providers: [provideTanStackQuery(new QueryClient())],
@@ -29,10 +26,7 @@ bootstrapApplication(AppComponent, {
2926
**Example - NgModule-based**
3027

3128
```ts
32-
import {
33-
provideTanStackQuery,
34-
QueryClient,
35-
} from '@tanstack/angular-query'
29+
import { provideTanStackQuery, QueryClient } from '@tanstack/angular-query'
3630
3731
@NgModule({
3832
declarations: [AppComponent],
@@ -53,13 +47,9 @@ import {
5347
QueryClient,
5448
} from '@tanstack/angular-query'
5549
56-
bootstrapApplication(AppComponent,
57-
{
58-
providers: [
59-
provideTanStackQuery(new QueryClient(), withDevtools())
60-
]
61-
}
62-
)
50+
bootstrapApplication(AppComponent, {
51+
providers: [provideTanStackQuery(new QueryClient(), withDevtools())],
52+
})
6353
```
6454

6555
**Example: using an InjectionToken**

packages/angular-query-devtools/src/__tests__/inject-devtools-panel.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import {
44
signal,
55
} from '@angular/core'
66
import { TestBed } from '@angular/core/testing'
7-
import {
8-
QueryClient,
9-
provideTanStackQuery,
10-
} from '@tanstack/angular-query'
7+
import { QueryClient, provideTanStackQuery } from '@tanstack/angular-query'
118
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
129
import { injectDevtoolsPanel } from '../inject-devtools-panel'
1310

0 commit comments

Comments
 (0)