switchLocalePath triggers useAsyncData watch #2763
martinsjek
started this conversation in
General
Replies: 1 comment 1 reply
-
This is expected behaviour, you're switching locale by navigating to a (technically different) page so page |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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