Jayden Carey
Jayden Carey
Any updates on this? Working on a tracker that I'd really love to be able to support state/provinces as well.
> I think have a workaround. I created a Svelte component that I named SlotFragment.svelte. It conditionally renders a default slot. > > ```svelte > {#if $$slots.default} > > {/if}...
There's no error, `sizepx` is defined as a reactive variable 3 lines below > ```svelte > > // Create some variables that hold information about the component's style. > export...
Domain hack-ish idea: `$state.less()`
@chainlist I've made this package to explore how event handling could be supported in Svelte 5 + provide the modifier wrapper functions https://github.com/Not-Jayden/svelte-event Still early stages and agree it would...
I'd opt for using a config object over an array if this were to be implemented. e.g. ```js $effect(() => { timesChanged++; }, { track: [num], }); ``` More explicit,...
> Ah, you are right, I did not take the types into consideration. Then let me throw in another idea, which is a somewhat revised version of yours and takes...
Just wanted to share that this _might_ be solved in Svelte 5, using `$state()` and `$effect()` runes to achieve reactivity instead of the svelte 4 reactive declaration. Svelte 4 reproduction...
@colinhacks wondering if the const modifier might make this more feasible in the future? https://github.com/microsoft/TypeScript/pull/51865
Ah yep I misunderstood that part of the PR, my apologies.