Hot reloading breaks after one minute with the Next.js starter
See original GitHub issueWhat 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
- Clone the Next.js starter project and install dependencies using
npm install - Start
npm run dev - Load the page in a browser
- Wait for one minute
- Change something in a page file
- 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:
- Created a year ago
- Comments:16 (7 by maintainers)
Top 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 >
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 Free
Top 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

Can confirm it works with the latest Next.js canary + Markdoc. Thanks to everyone involved!
Thanks @ijjk! I just tested this with
v12.2.6-canary.2, and that fixed the problem. Closing 👍