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.

Hot reloading breaks after one minute with the Next.js starter

See original GitHub issue

What happened?

Whenever I run npm run dev and leave the page untouched in the browser and editor for about a minute, hot reloading doesn’t have an effect anymore. The Next.js reload indicator in the lower right corner still shows up but the page does not update when I change something in my sources. Refreshing the page or performing any sort of page navigation (without a full reload) fixes hot reloading until it breaks again after one minute.

To reproduce

  1. Clone the Next.js starter project and install dependencies using npm install
  2. Start npm run dev
  3. Load the page in a browser
  4. Wait for one minute
  5. Change something in a page file
  6. The Next.js reloading indicator shows up but the page is not updated

Version

0.1.4

Additional context

The exact commit of the starter repository used is cf36368f405a41499aded8b61b136c0bda44c0e3.

This problem doesn’t occur with a Next.js starter project without Markdoc, so it doesn’t seem to be a Next.js issue.

I’m also not seeing any errors or warnings in the browser console or network tab.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
symmbcommented, Aug 29, 2022

Can confirm it works with the latest Next.js canary + Markdoc. Thanks to everyone involved!

1reaction
mfix-stripecommented, Aug 23, 2022

Thanks @ijjk! I just tested this with v12.2.6-canary.2, and that fixed the problem. Closing 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot module reload is not working on my nextjs app
Got help from @felixmosh. There was issue because of my folders were case was not matching route case. Fixed the issues by changing...
Read more >
Fast Reliable/Hot Reloading in Next.js - Coding Ninjas
The hot-reloading should work straight away, especially if the project is beginning. That is why you don't need to make any changes there....
Read more >
Hot Reload MDX changes in Next.js and Nx
With Next.js Fast Refresh enabled, most edits should be visible within a second, without losing component state. This works out of the box...
Read more >
Next.js 12.3 Overview: Improved Fast Refresh ... - YouTube
Next. js 12.3 introduces several improvements to your React development workflow, including hot reloading environment and configuration files ...
Read more >
Working on Federated SSR & Hot reloading production, in ...
Demo of hot reloadable production servers that use module federation and next. js. This video gives a sneak peek and reveals some of...
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