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, we use property getters, to ensure we always return the latest state.
- Loading branch information