-
Notifications
You must be signed in to change notification settings - Fork 130
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
Full app reload, always #55
Comments
I can't repro it. Can you provide more context or reproduction? |
@hannoeru sorry about that. Here's a repro: https://github.com/jods4/bug-vite-pages I found what specifically triggers the bug: Armed with this knowledge, I dug into the codebase and I think I found an explanation. vite-plugin-pages/src/generate.ts Lines 145 to 158 in 6096a33
This function doesn't actually compare the I suppose there are several ways to fix this, e.g.:
|
Try v0.12.1 |
That works! Thank you for that plugin. |
While testing 0.11.4, I noticed that no matter what I change in a page, a full page reload is triggered.
For example, if I change a button label -> full page reload.
I suspect it was introduced by the fix for #52.
Page change -> potential
<route>
block change -> regenerate routing (always?) -> HMR not possible forroutes.js
-> full reload (?)If
<route>
didn't change, that process should stop early and not induce an HMR failure.The text was updated successfully, but these errors were encountered: