I can’t do this:
const createCounter = () => $state(0);
let counter = createCounter();
> $state(...) can only be used as a variable declaration initializer or a class field
https://svelte.dev/e/state_invalid_placement (state_invalid_placement)It has to be part of a variable initialization even though it looks like it’s creating a value.