-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Causes scroll jumps when going back and forward in browser #88
Comments
Thank you for your detailed issue report. Still, providing a reproduction app (CodeSandbox or GitHub repo) would make it easier for me to work on this, which will make it more likely that I'll work on this sooner. |
I made a fix for the issue: #113 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I use this library along with
Nuxt
and basicvue-router
in SSR / static mode.Reproduce steps:
vue-router
. Still works like charm.And here's the deal: when going back,
vue-router
tries to scroll user to the same position he was before.But
lazy-hydrate
works basing onPromise
now, and that causes a slight delay in component rendering. So at the time router scrolls down, components are not rendered yet. Effectively, you land on the bottom of the page (or in some other bad place).The previous version (v1) worked differently, basing on some
Virtual DOM
hacks. The problem does not appear there.The text was updated successfully, but these errors were encountered: