Next.js fast refresh doesn't work
See original GitHub issueWhen I add the following code, fast-refresh breaks:
```python mark=1[22:30]
print("Rendered with Code Hike")
Without the above code, fast-refresh works as expected.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Fast refresh not working properly due to page reload ... - GitHub
Hi, I have the same issue. To reproduce it: import a function in react component then the same function import in your _middleware.js....
Read more >NextJS Fast refresh not working as expected - Stack Overflow
The fast refresh feature is working perfectly with other components but has problem with this specific component only.
Read more >Basic Features: Fast Refresh - Next.js
Next.js' Fast Refresh is a new hot reloading experience that gives you instantaneous feedback on edits made to your React components.
Read more >Fast Reliable/Hot Reloading in Next.js - Coding Ninjas
Why is hot reloading not working in React? ... It may happen because of an issue with your file system, file extensions, or...
Read more >How To Enable Hot Reloading for .env Files in Next.js
However, the Fast Refresh feature may not work on all files. This is especially true when it comes to .env files. In detail,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, I think I know why this happens. I’ll try to fix it soon.
There are some useState I need to remove from a few Code Hike components, but it isn’t a trivial refactor