useCookie() not working

Maybe this is expected behavior. If not, I'll make a Github issue
I have
{ swr: true }
in a route rule. When on that route, when trying to use
useCookie
, the cookie doesn't persist.

Here's a minimal reproduction:
https://stackblitz.com/edit/github-pvvuiv-4zjjl5?file=nuxt.config.ts,app.vue
StackBlitz
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
Nuxt - Starter (forked) - StackBlitz
Was this page helpful?