Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't directly reference local state
In svelte 5, $state referenced locally is not reactive, because of how evaluation occurs. Svelte will warn about this at runtime (and does so here) To make it reactive locally, the docs recommend using a closure, which is what we do here.
- Loading branch information