diff --git a/docs/3.api/2.composables/use-cookie.md b/docs/3.api/2.composables/use-cookie.md index 804d3e2784..6b06e3a421 100644 --- a/docs/3.api/2.composables/use-cookie.md +++ b/docs/3.api/2.composables/use-cookie.md @@ -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