Closed KnorpelSenf closed 3 years ago
That might be caused by the hydration. Need more investigation.
If I'm not mistaken, this is the same reason why subsections cannot be identified by #-ing the header. Try opening https://grammy.dev/guide/context.html#available-actions. Note how the page loads at the correct scrolling position, but then jumps back to top when the hydration happens.
This bug is probably hidden by the smooth scroll plugin.
I think I have figured out the cause. I'll try to fix it soon
Thanks so much! 🎉
Bug report
Description
When the page loads, it first displays the frontpage, then switches to an all white screen, and then displays it correctly again. This flickering takes less than a second in both Chrome and Firefox with no cache, and gets faster on subsequent page reloads. This affects only the front page.
Steps to reproduce
Reproduction link / repo:
Look at https://grammy.dev/ which is built from here using
"vuepress": "^2.0.0-beta.9"
.In fact, you can also observe it on the documentation of Vuepress Next itself at https://vuepress2.netlify.app/ if you throttle your network in the devtools, e.g. to Slow 3G.
This does not happen for Vuepress itself, https://vuepress.vuejs.org/ works just fine under all circumstances.
Expected behavior
When the page loads, the content does not disappear again after being displayed.
Screenshots
Environment info
vuepress info
: