You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constrouteLocale=useRouteLocale();constroute=useRoute()// triggers while scrolling pageswatchEffect(()=>{console.log("routelocale update");routeLocale.value;});watchEffect(()=>{console.log("route path update");route.path;});
Route locale and route path update will be triggered while scrolling page (with hash and query change) .
This will have performance impact as we are expecting that routeLocale remain unchanged unless we navigate to a new locale and route.path not changed unless we navigate to a new page.
Mister-Hope
changed the title
[Bug report] routeLocale will be triggered unexpected.
[Bug report] routeLocale and route.path will be triggered unexpected.
Feb 5, 2023
Description
Route locale and route path update will be triggered while scrolling page (with hash and query change) .
This will have performance impact as we are expecting that routeLocale remain unchanged unless we navigate to a new locale and route.path not changed unless we navigate to a new page.
Reproduction
https://v2.vuepress.vuejs.org/
Used Package Manager
npm
System Info
The text was updated successfully, but these errors were encountered: