next.js icon indicating copy to clipboard operation
next.js copied to clipboard

[Next 9] Changes to pages are reverted after clicking in Link

Open vinipace opened this issue 7 years ago • 2 comments

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

  1. Go to https://github.com/vinpac/next9-hmr-error-example
  2. Install and run yarn dev
  3. Make a change to pages/index.tsx -> HMR works
  4. 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

vinipace avatar Jul 09 '19 13:07 vinipace

@vinpac this is likely because the href is /index instead of / -- we'll continue to dig deeper into this.

Timer avatar Jul 09 '19 17:07 Timer

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.

balazsorban44 avatar Jan 31 '22 01:01 balazsorban44