Open Brendonovich opened 6 months ago
This is expected, see: https://github.com/solidjs/solid-refresh?tab=readme-ov-file#how-it-works
We used to have this feature before but it was problematic, so always give components a name.
Relevant Discord discussion: https://discord.com/channels/722131463138705510/722131463889223772/1216948069602689155
@lxsmnsyc only allowing named components makes sense, but is that the reason why ButNotMe
doesn't have HMR even though it's named?
@Brendonovich the transform is correct for this one, however I'm confident that something else might be contributing to this behavior, maybe Vinxi.
Definitely a Vinxi thing, HMR works properly when adding the fix suggested in https://github.com/nksaraf/vinxi/issues/135
Duplicates
Latest version
Current behavior 😯
Editing a file in
routes/
that has a default export will cause a full reload, rather than use HMR.Expected behavior 🤔
HMR should work like in all other files
Steps to reproduce 🕹
Steps:
routes/index.tsx
, but works inIHaveHMR.tsx
androutes/MeToo.tsx
Context 🔦
i like hmr, nuff said
Your environment 🌎
No response