next.js
next.js copied to clipboard
[Next 9] Changes to pages are reverted after clicking in Link
Bug report
Describe the bug
If you make a change to a page, then click to Link component the changes to this page will be reverted until a Full reload is made.
To Reproduce
- Go to https://github.com/vinpac/next9-hmr-error-example
- Install and run yarn dev
- Make a change to pages/index.tsx -> HMR works
- Click on the link named "Home 2" -> Changes made to the page are reverted
Expected behavior
Changes to pages should be maintained without needing to full reload the page.
System information
- OS: macOS
- Browser: Chrome
- Version of Next.js: 9.0.0
@vinpac this is likely because the href is /index instead of / -- we'll continue to dig deeper into this.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.