This uses vite hot.data to store and recover previous component getter/setters. Without it, child components are not able to get updated after a change in the parent component, as mentioned in #26.
The goal of this fix was to change as few things as possible in solid-refresh, because as discussed with @lxsmnsyc solid-refresh is getting a proper larger rework soon-ish anyways.
Background
This uses vite
hot.data
to store and recover previous component getter/setters. Without it, child components are not able to get updated after a change in the parent component, as mentioned in #26.The goal of this fix was to change as few things as possible in solid-refresh, because as discussed with @lxsmnsyc solid-refresh is getting a proper larger rework soon-ish anyways.
Reproduction
Bildschirmaufzeichnung vom 2022-12-22, 13-40-11.webm
How did I test the changes
pnpm run test
Tested vite versions