nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.71k stars 478 forks source link

switchLocalePath triggers useAsyncData watch #2762

Closed martinsjek closed 7 months ago

martinsjek commented 7 months ago

Environment

StackBlitz

Reproduction

https://stackblitz.com/edit/github-orzjqc-5p8wzh?file=nuxt.config.ts,pages%2Findex.vue

Describe the bug

When changing the language with switchLocalePath it re-executes useAsyncData function. Is this how it should work? How to i change the path but do not trigger useAsyncData if it's not based on locale?

Additional context

No response

Logs

No response