-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(client): add onBeforePageLoad hook for router #2564
Conversation
why the early return thing? |
I don't quite understand what you mean, if I return |
Hello! Thank you very much for your work! However, the issue I encountered has not been resolved yet. When using vitepress/src/client/app/router.ts Lines 215 to 217 in fa3780f
|
ah, moving that condition inside loadPage should work then. |
fixed in a3df617 |
I am using fullpage.js, but it doesn't work properly in
vitepress
because it useslocation.href
for anchors internally, which causes the page to be reloaded invitepress
. Therefore, I want to add anonBeforeRoutePageLoad
hook to control the timing of page reloading.20230701-183916.mp4
docs/components/ComponentInHeader.vue
: