switchLocalePath triggers useAsyncData watch #2763
Replies: 2 comments 2 replies
-
This is expected behaviour, you're switching locale by navigating to a (technically different) page so page |
Beta Was this translation helpful? Give feedback.
-
@BobbieGoede Then after switching locale, this won't re-execute. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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 do I change the path but do not trigger useAsyncData if it's not based on locale?
Additional context
No response
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions