Uh oh!
There was an error while loading. Please reload this page.
Conversation
✅ Deploy Preview for nuxt3-docs canceled.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
pi0
commented
Apr 22, 2022
@joel-wenzel sorry, your PR got stalled. Can you please consider rebasing it? @posva Can you please confirm if this changes are looking good to you or any change needed? |
fanckush
commented
Apr 30, 2022
Merging this PR would fix the issue nuxt/nuxt#13284 btw |
Uh oh!
There was an error while loading. Please reload this page.
joel-wenzel
commented
May 9, 2022
@pi0 No problem. Rebased. Should be all good now |
joel-wenzel
commented
May 21, 2022
@pi0 I merged instead of rebase. If you would rather I make a new branch/PR let me know |
When will it be merged? Current Nuxt 3 page link behaviour is counter-intuitive because page sticks on current position of previous page. Update 2022-06-04: This might also solve your problems with latest plain Nuxt 3 apps. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Rigo-m
commented
Jun 16, 2022
The problem of this, at least in content-wind, is that the scroll starts when the next page has yet to be mounted |
axelthat
commented
Jun 22, 2022
Any updates? |
joel-wenzel
commented
Jun 22, 2022
I am waiting until I hear from the core team before fixing merge conflicts. I have fixed them 3 or 4 times now only to become outdated again |
Hi @joel-wenzel. Sorry, it took long on your pull request. I was mainly waiting for @posva's take about the possibility of moving this to the vue-router core. If you can rebase your PR I can locally test and merge to iterate. |
Uh oh!
There was an error while loading. Please reload this page.
| onResolve: () => nuxtApp.callHook('page:finish', routeProps.Component).finally(done) | ||
| }, { default: () => h(Component, { key, routeProps, pageKey: key, hasTransition: !!transitionProps } as {}) }) | ||
| onResolve: () => { | ||
| nextTick(() => nuxtApp.callHook('page:finish', routeProps.Component).finally(done)) |
There was a problem hiding this comment.
Heads up @danielroe we are calling page:finish in nextTick by this PR
pi0
commented
Oct 19, 2022
Thank you so much for working on this @joel-wenzel and sorry it took long to land! I've made a few refactors and fixes on top of your work. |
lamdinh95
commented
Nov 5, 2022
Hello @pi0, I've updated to rc.13 today but the scroll behaviour do not work correctly. When I navigate back, the scroll doesn't go to the save position but it's reset instead. |
danielroe
commented
Nov 5, 2022
This should be resolved in the edge channel, or in the next RC. Let me know if not. |
🔗 Linked issue
Discussion #3338
❓ Type of change
📚 Description
Added new hook for
page:transition:finishemitted from NuxtPage. Hook fires after the vue transitionafterLeaveevent.Also added default scroll behavior, which can still be overridden by using
app/router.options📝 Checklist