docs: add refreshCookie on useCookie doc page (#27744)

This commit is contained in:
Maxime Pauvert 2024-06-21 00:18:00 +02:00 committed by Daniel Roe
parent d7402a7991
commit eaf5bfedf6
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -45,6 +45,10 @@ counter.value = counter.value || Math.round(Math.random() * 1000)
:link-example{to="/docs/examples/advanced/use-cookie"}
::note
Refresh `useCookie` values manually when a cookie has changed with [`refreshCookie`](/api/utils/refresh-cookie).
::
## Options
Cookie composable accepts several options which let you modify the behavior of cookies.
@ -148,6 +152,10 @@ Specifies the `boolean` or `string` value for [watch](https://vuejs.org/api/reac
- `shallow` - Will watch cookie ref data changes for only top level properties
- `false` - Will not watch cookie ref data changes.
::note
Refresh `useCookie` values manually when a cookie has changed with [`refreshCookie`](/api/utils/refresh-cookie).
::
**Example 1:**
```vue