Skip to content

Commit

Permalink
docs: add warning about using .value, closes vuelidate#1016
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromir-hristov committed May 1, 2022
1 parent c557655 commit e5e7800
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/docs/src/advanced_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export default {
}
```

::: warning
`useVuelidate` returns a `computed`, so you need to use `.value` when accessing any of it's properties, like `$error`, `$validate` inside the `setup` function.

In the template it is unwrapped for you.
:::

### Using `reactive` state

```js
Expand Down

0 comments on commit e5e7800

Please sign in to comment.