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
I use this library along with Nuxt and basic vue-router in SSR / static mode.
Reproduce steps:
Render page. Everythings loads fine (statically), lazy hydration works perfectly.
Scroll somewhere down.
Go to some other page. This is standard SPA navigation to some other page using vue-router. Still works like charm.
Click back in your browser.
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 on Promise 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:
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 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: