Closed tomsdob closed 1 year ago
cc: @harlan-zw
Can confirm there is a bug.
I spent some time playing with this, I tested the general reactivity of useSeoMeta within error.vue and it seemed to work correctly.
I tested the general reactivity of the i18n locale and that seemed to work correctly.
Combining both of them seems to cause the issue so will need to investigate further. Good to leave with me.
I think the reproduction is stale. Anyway this may be fixed with latest Nuxt and Unhead 1.4
Yes, it doesn't look the the reproduction exists any more (for this issue). Let's close as I think this was solved; if you are still experiencing this, please provide a reproduction and we'll reopen. 🙏
@harlan-zw, @danielroe Sorry, something had happened with the reproduction. I updated it to match the issue: https://stackblitz.com/edit/github-nmhzwq-lxngab?file=pages%2Findex.vue
Open the app in a new tab to see the title not changing when switching locales and then after commenting out useAsyncData
in pages/index.vue
, the title changes when switching locales.
resolved in https://github.com/nuxt/nuxt/pull/22945
Environment
Build Modules: -
Reproduction
https://stackblitz.com/edit/github-nmhzwq-lxngab?file=pages%2Findex.vue
Describe the bug
Switching locale in
/error.vue
updates the text inside of<template>
, but does not update the title withuseSeoMeta()
ifuseFetch()
/useAsyncData()
inside the/pages/index.vue
page are used asynchronously.Additional context
Can see the title of the website not changing by clicking on "Open in New Tab" on StackBlitz and clicking on locale links while using
await useAsyncData
orawait useFetch
in/pages/index.vue
.Logs
No response