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
We've recently upgraded from 2.0.0-alpha.61 to 2.0.0-alpha.75 and noticed that hot-reload is no longer working as before. The same issue can be observed with the latest 2.0.0-beta.0.
Previously, when I had a long Markdown document and was editing somewhere down below, I was able to see changes immediately in a browser window; with newer releases of Docusaurus 2, the browser scrolls to top every time which makes the editing experience a lot less pleasant (a demo by my colleague @TomKalina):
Also, in the console output, this message is now printed repeatedly:
Docusaurus website is running at: http://localhost:3000/
Which might be hinting at something, I don't know, but previously, this message was printed only once, not after every save. Could this be related to the recent webpack 5 upgrade #4089?
Navigate to /docs/intro in the built-in browser window, scroll down.
Edit the intro.md file
See the browser preview jump to top.
Expected behavior
Browser does Fast Refresh / hot reload / HMR without scrolling to top.
Actual Behavior
The browser scrolls to top.
Search terms: hot reload, hot-reload, HMR, fast refresh, compilation, webpack, Markdown, MD, .md, .mdx, browser, preview, docusaurus start, dev server, UX.
The text was updated successfully, but these errors were encountered:
borekb
added
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
labels
May 14, 2021
🐛 Bug Report
We've recently upgraded from
2.0.0-alpha.61
to2.0.0-alpha.75
and noticed that hot-reload is no longer working as before. The same issue can be observed with the latest2.0.0-beta.0
.Previously, when I had a long Markdown document and was editing somewhere down below, I was able to see changes immediately in a browser window; with newer releases of Docusaurus 2, the browser scrolls to top every time which makes the editing experience a lot less pleasant (a demo by my colleague @TomKalina):
Also, in the console output, this message is now printed repeatedly:
Which might be hinting at something, I don't know, but previously, this message was printed only once, not after every save. Could this be related to the recent webpack 5 upgrade #4089?
To Reproduce
/docs/intro
in the built-in browser window, scroll down.intro.md
fileExpected behavior
Browser does Fast Refresh / hot reload / HMR without scrolling to top.
Actual Behavior
The browser scrolls to top.
Search terms: hot reload, hot-reload, HMR, fast refresh, compilation, webpack, Markdown, MD,
.md
,.mdx
, browser, preview,docusaurus start
, dev server, UX.The text was updated successfully, but these errors were encountered: