Editing the first slide's heading causes a full page reload
Describe the bug I'm just getting started using slidev, and was confused at first and thinking that HMR was broken, because I was editing the first heading of the first slide, and the page was reloading. But, I realized that changing any other content uses HMR correctly.
To Reproduce Steps to reproduce the behavior:
- Go to sli.dev/new
- Wait for it to load up
- Change the text from
Welcome to SlidevtoWelcome to Slidev!, for example - Note that the page refreshes, instead of HMR
Desktop (please complete the following information):
- OS: mac / stackblitz
- Browser: Brave
- Slidev version: v0.30.3
Facing the same problem but in my case the full page reload is even trigger without changing any content.
The first frontmatter also served as inline config, which expects a full reload when some field changes. We could probably improve the experience here by diff the before/after and only triggering reloads when necessary. PR welcome.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Based on my experience this seems to still be an issue.