这是indexloc提供的服务,不要输入任何密码
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
8 changes: 4 additions & 4 deletions .changeset/refactor-pinia-colada-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ feat(pinia-colada): query options use `defineQueryOptions`

Pinia Colada query options now use `defineQueryOptions` to improve reactivity support. Instead of calling the query options function, you can use one of the following approaches.

#### No params
### No params

```ts
useQuery(getPetsQuery);
```

#### Constant
### Constant

```ts
useQuery(getPetByIdQuery, () => ({
Expand All @@ -24,7 +24,7 @@ useQuery(getPetByIdQuery, () => ({
}));
```

#### Reactive
### Reactive

```ts
const petId = ref<number | null>(1);
Expand All @@ -36,7 +36,7 @@ useQuery(getPetByIdQuery, () => ({
}));
```

#### Properties
### Properties

```ts
const petId = ref<number | null>(1);
Expand Down
Loading