I've started using SolidJS maybe 2 months ago, and I like it very much. It has solutions to problems I encountered with Svelte while building a large Apps. But there's one annoyance that comes up during the development mode which bugged me until I found a solution.
If you have been working with SolidJS using the developer mode (npm run dev) then you probably noticed the annoyance which happens when you modify a file, Vite reloads it but parts of the old code is still active (namely the reactive effects), so the HTML can have duplicates, old errors that you fixed cropping up, etc. Beyond annoyance it can waste a lot of developer time to try to figure why something is still malfunctioning after fixing it.
I've run into this myself quite a bit so I decided to dig deeper. After extensive Google-ing I couldn't find the mention of this issue or any solution. It's sure to exist because it happens even when I use SolidJS' standard starter template with a very simple application.
Anyways, problem lies in the fac