https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state says:
On the contrary, if you keep the default preserveLocalState
to false
, you can enable preservation of all the local state of a given component by adding the following comment: // @hmr:keep-all
. You can also preserve only the state of some specific variables, by annotating them with: // @hmr:keep
.
How to decide which systems to reboot when code changes? Developing gets waitsy when everything has to complicatedly clunk.
If I change code in audio.svelte.ts,
The reload happens to Call.svelte, which includes it via Peering via Party.
That first one though we have hooked in before with the following code, as vite suggested, but it doesn't seem to all be there:
Probably because svelte is between us and vite, doing something I can't find info about - the discord wants me to click squirrels.
And so,
Just separate what should reload into a component! Yay.
I guess this means my UI, which is a list of participants (Y axis) and their features (X axis), may want to be a multi-table join sort of thing.
Which means I'm writing a table class with synthesized absolute positioning! It also seems like the Basket grouper|compressor I built before...
No comments:
Post a Comment