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.

fast reload (without restart) like Next.js

See original GitHub issue

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Hi, my project has a lot of routes ~100 routes and ~150 dependencies. And everything is slowing down. I used all tools nodemon , ts-node, ts-node-dev, backpack and fastify-cli (v4) I even purchase a new good CPU with a benchmark score is 24000 But my project still takes 4-5s to restart when a file is changed.

I am using Next.js too. And I am curious why Next.js never needs to restart the server, but other node.js frameworks can’t do that 🤔

Motivation

Everyone is happy.

Example

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
Eommcommented, Sep 12, 2022

I think it can do it because of money. Vercel pays devs to work on the Next.js framework full-time.

Vercel raises $150M Series D as it looks to build an end-to-end front-end development platform

3reactions
meotimdihiacommented, Sep 14, 2022

@sidwebworks I just tested it, it is faster than ts-node but not faster than fastify-cli.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
Next.js : Refresh page after modifying a file, without rerunning ...
@Rudi's answer is correct, and I'll add to that that you want to make sure the command you're ultimately running is next ,...
Read more >
Breaking: Fast Refresh for .env files in Next.js 12.3
Create React App also has the same problem. For any change in a file like .env.local , the app will not reload, neither...
Read more >
Refreshing Server-Side Props - Next.js - Josh W Comeau
How do we tell Next.js to re-fetch the data, on demand, without doing a hard refresh of the whole page? In this short...
Read more >
Fast Reliable/Hot Reloading in Next.js - Coding Ninjas
Fast Reloading without changing the state · Fast refresh only renders the components from a file if it exports React components · It...
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