Skip to content

Commit dacdddd

Browse files
authored
doc: fix installation instructions for tanstack-query and swr plugins (#388)
1 parent 3274ff0 commit dacdddd

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

docs/quick-start/nextjs-app-router.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ automagically, so you don't need to write it yourself.
220220
First install the `@zenstackhq/server`, `@tanstack/react-query`, and `@zenstackhq/tanstack-query` packages:
221221

222222
```bash
223-
npm install @zenstackhq/server@latest @tanstack/react-query
224-
npm install -D @zenstackhq/tanstack-query@latest
223+
npm install @zenstackhq/server@latest @zenstackhq/tanstack-query@latest @tanstack/react-query
225224
```
226225

227226
Let's mount it to the `/api/model/[...path]` endpoint. Create a `/src/app/api/model/[...path]/route.ts`

docs/quick-start/nextjs.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ automagically, so you don't need to write it yourself.
221221
First install the `@zenstackhq/server`, `@tanstack/react-query`, and `@zenstackhq/tanstack-query` packages:
222222

223223
```bash
224-
npm install @zenstackhq/server@latest @tanstack/react-query
225-
npm install -D @zenstackhq/tanstack-query@latest
224+
npm install @zenstackhq/server@latest @zenstackhq/tanstack-query@latest @tanstack/react-query
226225
```
227226

228227
Let's mount it to the `/api/model/[...path]` endpoint. Create a `/src/pages/api/model/[...path].ts`

docs/quick-start/nuxt.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ The CRUD APIs for all your models are now mounted to the `/api/model` endpoint.
188188
We can write frontend code to consume the CRUD APIs, but that would be quite boring. Instead, let's use a plugin to generate them for us. First, install the `@zenstackhq/tanstack-query` plugin package:
189189

190190
```bash
191-
npm install @tanstack/vue-query --force
192-
npm install -D @zenstackhq/tanstack-query
191+
npm install @zenstackhq/tanstack-query @tanstack/vue-query
193192
```
194193

195194
:::info

docs/reference/plugins/swr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To use the generated hooks, you need to install "swr" version 2.0.0 or above.
2323
### Installation
2424

2525
```bash
26-
npm install --save-dev @zenstackhq/swr
26+
npm install @zenstackhq/swr
2727
```
2828

2929
### Context Provider

0 commit comments

Comments
 (0)