Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/reference/plugins/tanstack-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ npm install --save-dev @zenstackhq/tanstack-query
| -------- | ------- | ------------------------------------------------------- | -------- | ------- |
| output | String | Output directory (relative to the path of ZModel) | Yes | |
| target | String | Target framework to generate for. Choose from "react", "vue", "svelte", "angular". | Yes | |
| version | String | Version of TanStack Query to generate for. Choose from "v4" and "v5". Angular supports only "v5" | No | v5 |
| version | String | Version of TanStack Query to generate for. Choose from "v4" and "v5". Target "angular" only works with "v5". | No | v5 |
| portable | Boolean | Include TypeScript types needed to compile the generated code in the output directory. Useful when you output into another project that doesn't reference Prisma and ZenStack. You'll still need to install the "@zenstackhq/tanstack-query" package in that project. | No | false |

:::info
Angular support is contributed by [@ScriptType](https://github.com/ScriptType).
:::

### Hooks Signature

The generated hooks have the following signature convention.
Expand Down