Next.js hard refreshes when state changes
Closed this issue · 1 comments
Devric commented
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- using the default counter example
- change the count by onClick={()=>increment(1)}
- the page refreshes
Expected behavior
The page should not refresh when state changes
Screenshots
N/A
Desktop (please complete the following information):
Macos, Chrome
Smartphone (please complete the following information):
N/A
Additional context
N/A
Devric commented
need to handle event.preventDefault in next.js, not an issue of this library