Skip to content

Commit f752ffd

Browse files
maximepvrtKamsou
authored andcommitted
docs: add refreshCookie on useCookie doc page (nuxt#27744)
1 parent 6e925f8 commit f752ffd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎docs/3.api/2.composables/use-cookie.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ counter.value = counter.value || Math.round(Math.random() * 1000)
4545

4646
:link-example{to="/docs/examples/advanced/use-cookie"}
4747

48+
::note
49+
Refresh `useCookie` values manually when a cookie has changed with [`refreshCookie`](/api/utils/refresh-cookie).
50+
::
51+
4852
## Options
4953

5054
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
148152
- `shallow` - Will watch cookie ref data changes for only top level properties
149153
- `false` - Will not watch cookie ref data changes.
150154

155+
::note
156+
Refresh `useCookie` values manually when a cookie has changed with [`refreshCookie`](/api/utils/refresh-cookie).
157+
::
158+
151159
**Example 1:**
152160

153161
```vue

0 commit comments

Comments
 (0)