question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Next.js fast refresh doesn't work

See original GitHub issue

When 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.

Here’s a link to a similar issue.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
pombercommented, Jul 1, 2022

OK, I think I know why this happens. I’ll try to fix it soon.

0reactions
pombercommented, Jul 12, 2022

@pomber can you share any details re/ why you think it happens? I’m hitting this as well.

There are some useState I need to remove from a few Code Hike components, but it isn’t a trivial refactor

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found