-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🗺️ Remix Retune (HMR) #5240
Comments
@jacob-ebey and Pedro to pair on this, especially in the beginning |
How we handle different types of updatesPrototypeAny code changes: HMR new modules only applying React Refresh after routes revalidate Platonic idealDetect addition or change of loaders so we only revalidate those. Removal shouldn't require special handling. How to detect loader changesHash the loader function. For correctness, we can err on the side of doing a full revalidation for this loader whenever anything changes in its file. Since we currently have "double save = full refresh" dev snacks, we could go for the "speed optimized" approach and let users double save to force a revalidation when those subtle cases come up, but they should be exceedingly rare. |
Clientside assets only, expect the server to do it's own reboot/reload etc. when the server assets change (since they all do anyway, and in the case of express, just do
--watch
in v19)PRs
TODO
The text was updated successfully, but these errors were encountered: