File tree Expand file tree Collapse file tree 9 files changed +130
-50
lines changed Expand file tree Collapse file tree 9 files changed +130
-50
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,19 @@ TanStack Query comes with its own ESLint plugin. This plugin is used to enforce
10
10
The plugin is a separate package that you need to install:
11
11
12
12
``` bash
13
- $ npm i -D @tanstack/eslint-plugin-query@4
14
- # or
15
- $ pnpm add -D @tanstack/eslint-plugin-query@4
16
- # or
17
- $ yarn add -D @tanstack/eslint-plugin-query@4
13
+ npm i -D @tanstack/eslint-plugin-query@4
14
+ ```
15
+
16
+ or
17
+
18
+ ``` bash
19
+ pnpm add -D @tanstack/eslint-plugin-query@4
20
+ ```
21
+
22
+ or
23
+
24
+ ``` bash
25
+ yarn add -D @tanstack/eslint-plugin-query@4
18
26
```
19
27
20
28
## Usage
Original file line number Diff line number Diff line change @@ -19,11 +19,19 @@ This module is distributed via [NPM](https://www.npmjs.com/package/react-query-k
19
19
should be installed as one of your project's ` dependencies ` :
20
20
21
21
``` bash
22
- $ npm i react-query-kit
23
- # or
24
- $ pnpm add react-query-kit
25
- # or
26
- $ yarn add react-query-kit
22
+ npm i react-query-kit
23
+ ```
24
+
25
+ or
26
+
27
+ ``` bash
28
+ pnpm add react-query-kit
29
+ ```
30
+
31
+ or
32
+
33
+ ``` bash
34
+ yarn add react-query-kit
27
35
```
28
36
29
37
## Quick start with nextjs
Original file line number Diff line number Diff line change @@ -10,11 +10,19 @@ Typesafe query key management with auto-completion features. Focus on writing an
10
10
You can install Query Key Factory via [ NPM] ( https://www.npmjs.com/package/@lukemorales/query-key-factory ) .
11
11
12
12
``` bash
13
- $ npm i @lukemorales/query-key-factory
14
- # or
15
- $ pnpm add @lukemorales/query-key-factory
16
- # or
17
- $ yarn add @lukemorales/query-key-factory
13
+ npm i @lukemorales/query-key-factory
14
+ ```
15
+
16
+ or
17
+
18
+ ``` bash
19
+ pnpm add @lukemorales/query-key-factory
20
+ ```
21
+
22
+ or
23
+
24
+ ``` bash
25
+ yarn add @lukemorales/query-key-factory
18
26
```
19
27
20
28
Original file line number Diff line number Diff line change @@ -14,11 +14,19 @@ You don't even need to use the isSuccess flag.
14
14
You can install @suspensive/react-query via [ NPM] ( https://www.npmjs.com/package/@suspensive/react-query ) .
15
15
16
16
``` bash
17
- $ npm i @suspensive/react-query
18
- # or
19
- $ pnpm add @suspensive/react-query
20
- # or
21
- $ yarn add @suspensive/react-query
17
+ npm i @suspensive/react-query
18
+ ```
19
+
20
+ or
21
+
22
+ ``` bash
23
+ pnpm add @suspensive/react-query
24
+ ```
25
+
26
+ or
27
+
28
+ ``` bash
29
+ yarn add @suspensive/react-query
22
30
```
23
31
24
32
### Motivation
Original file line number Diff line number Diff line change @@ -18,11 +18,19 @@ The devtools are a separate package that you need to install.
18
18
The major version of all the packages must be in sync.
19
19
20
20
``` bash
21
- $ npm i @tanstack/react-query-devtools@4
22
- # or
23
- $ pnpm add @tanstack/react-query-devtools@4
24
- # or
25
- $ yarn add @tanstack/react-query-devtools@4
21
+ npm i @tanstack/react-query-devtools@4
22
+ ```
23
+
24
+ or
25
+
26
+ ``` bash
27
+ pnpm add @tanstack/react-query-devtools@4
28
+ ```
29
+
30
+ or
31
+
32
+ ``` bash
33
+ yarn add @tanstack/react-query-devtools@4
26
34
```
27
35
28
36
You can import the devtools like this:
Original file line number Diff line number Diff line change @@ -10,11 +10,19 @@ or a good ol' `<script>` via
10
10
### NPM
11
11
12
12
``` bash
13
- $ npm i @tanstack/react-query
14
- # or
15
- $ pnpm add @tanstack/react-query
16
- # or
17
- $ yarn add @tanstack/react-query
13
+ npm i @tanstack/react-query@4
14
+ ```
15
+
16
+ or
17
+
18
+ ``` bash
19
+ pnpm add @tanstack/react-query@4
20
+ ```
21
+
22
+ or
23
+
24
+ ``` bash
25
+ yarn add @tanstack/react-query@4
18
26
```
19
27
20
28
React Query is compatible with React v16.8+ and works with ReactDOM and React Native.
@@ -53,9 +61,17 @@ Opera >= 53
53
61
It is recommended to also use our [ ESLint Plugin Query] ( ../../../eslint/eslint-plugin-query ) to help you catch bugs and inconsistencies while you code. You can install it via:
54
62
55
63
``` bash
56
- $ npm i -D @tanstack/eslint-plugin-query
57
- # or
58
- $ pnpm add -D @tanstack/eslint-plugin-query
59
- # or
60
- $ yarn add -D @tanstack/eslint-plugin-query
64
+ npm i -D @tanstack/eslint-plugin-query@4
65
+ ```
66
+
67
+ or
68
+
69
+ ``` bash
70
+ pnpm add -D @tanstack/eslint-plugin-query@4
71
+ ```
72
+
73
+ or
74
+
75
+ ``` bash
76
+ yarn add -D @tanstack/eslint-plugin-query@4
61
77
```
Original file line number Diff line number Diff line change @@ -8,11 +8,19 @@ You can install Svelte Query via [NPM](https://npmjs.com).
8
8
### NPM
9
9
10
10
``` bash
11
- $ npm i @tanstack/svelte-query
12
- # or
13
- $ pnpm add @tanstack/svelte-query
14
- # or
15
- $ yarn add @tanstack/svelte-query
11
+ npm i @tanstack/svelte-query
12
+ ```
13
+
14
+ or
15
+
16
+ ``` bash
17
+ pnpm add @tanstack/svelte-query
18
+ ```
19
+
20
+ or
21
+
22
+ ``` bash
23
+ yarn add @tanstack/svelte-query
16
24
```
17
25
18
26
> Wanna give it a spin before you download? Try out the [ basic] ( ../examples/basic ) example!
Original file line number Diff line number Diff line change @@ -8,11 +8,19 @@ You can install Vue Query via [NPM](https://npmjs.com).
8
8
### NPM
9
9
10
10
``` bash
11
- $ npm i @tanstack/vue-query
12
- # or
13
- $ pnpm add @tanstack/vue-query
14
- # or
15
- $ yarn add @tanstack/vue-query
11
+ npm i @tanstack/vue-query
12
+ ```
13
+
14
+ or
15
+
16
+ ``` bash
17
+ pnpm add @tanstack/vue-query
18
+ ```
19
+
20
+ or
21
+
22
+ ``` bash
23
+ yarn add @tanstack/vue-query
16
24
```
17
25
18
26
> Wanna give it a spin before you download? Try out the [ basic] ( ../examples/basic ) example!
Original file line number Diff line number Diff line change @@ -35,11 +35,19 @@ Visit https://tanstack.com/query/v4/docs/adapters/vue-query
35
35
1 . Install ` vue-query `
36
36
37
37
``` bash
38
- $ npm i @tanstack/vue-query
39
- # or
40
- $ pnpm add @tanstack/vue-query
41
- # or
42
- $ yarn add @tanstack/vue-query
38
+ npm i @tanstack/vue-query
39
+ ```
40
+
41
+ or
42
+
43
+ ``` bash
44
+ pnpm add @tanstack/vue-query
45
+ ```
46
+
47
+ or
48
+
49
+ ``` bash
50
+ yarn add @tanstack/vue-query
43
51
```
44
52
45
53
> If you are using Vue 2.6, make sure to also setup [ @vue/composition-api ] ( https://github.com/vuejs/composition-api )
You can’t perform that action at this time.
0 commit comments