Revisit idea of full server reboot on change #6269
Replies: 2 comments
-
1 - I'm not fond of the full server reboot either, especially on low specs computers where it can take 2-3 seconds. From my understanding, some server-side changes require a reboot (a change in a Prisma schema for example), while other just needs to revalidate all loaders. Would it be possible to allow the developer to quickly switch from one more to another, using DevTools, or a debug bar ? |
Beta Was this translation helpful? Give feedback.
-
For the chatty output: totally agree. Prettifying the logs and making them more concise is part of the work we want to do before stabilizing as For restarts: The |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm excited about the cool stuff happening with HMR/HDR and the new changes in the Remix dev server in 1.16.0, but I'm really concerned about the apparent requirement that Remix reboot my server after every rebuild.
I have a few use cases where rebooting my server regularly impacts my workflow:
In some ways, number 2 is actually good because using
global.__whatever
stuff for persisting those in-memory caches is super annoying, but in other ways, not having those in-memory caches persisted between code changes is even more annoying. I suppose a solution could be to just use a persisted cache in a file system or something. Just takes a different approach.But the startup time is definitely an issue. I'm guessing that HMR will be plenty fast when changing UI code, but HDR will always be as slow as it is to reboot the server which is not ideal. Maybe the solution is to simply improve startup time? 😅
For the chatty startup output, I like having the output of my server be descriptive (as I have contributors and workshop attendees). Here's an example of my output:
Having all that output for every code change would be pretty annoying. I'm open to ideas though.
Can anyone clear things up for me a bit?
EDIT: After thinking about this a bit more, I think this is ok. But I added a third issue.
EDIT 2: @pcattori and I live streamed some of these topics: https://www.youtube.com/watch?v=IjE18rXpp9Q
Beta Was this translation helpful? Give feedback.
All reactions