This is a heavily interactive web application, and JavaScript is required. Simple HTML interfaces are possible, but that is not what this is.
Post
Mat Simon
matsimon.dev
did:plc:47abzqpwyfxxyqw5oc4sb5mo
You're encountering the most complicated part of Svelte 5. How reactivity works and how the compiler hides it from you.
When you export a single value like a number or string, there is no mechanism for svelte to maintain reactivity because JavaScript doesn't offer a way to track that.
https://svelte.dev/docs/svelte/$state#Passing-state-into-functions
2025-01-02T08:29:54.452Z