From eaf5bfedf63398296cfc5a916bc9ad990c468b36 Mon Sep 17 00:00:00 2001 From: Maxime Pauvert Date: Fri, 21 Jun 2024 00:18:00 +0200 Subject: [PATCH] docs: add `refreshCookie` on `useCookie` doc page (#27744) --- docs/3.api/2.composables/use-cookie.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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