7nik

Results 188 comments of 7nik

Can somebody make a reproduction? I tried both REPL and local SK project and both always load the corresponding CSS, so, though the CSS hashes still collide, I failed to...

The first read (and, as a result, the store initialization) happens in the markup, so the error is correct. Either read the store in the script (e.g. simple `$store;`) or...

Why do you need to convert stores to runes at all? Stores reactivity still works in Svelte 5 and is even detected as a dependency in $effect.

In Svelte 4 it doesn't work either. In the runes mode, you get the each_item_invalid_assignment error on `x = true`.

Destructuring with fallback internally is done as derived and I assume it doesn't see changes because the array isn't stateful. Defining it with a variable will make it coarsely reactive...

Working right on DOM elements isn't svelty way. For collapsing elements, there is [svelte-collapse](https://www.npmjs.com/package/svelte-collapse) (though it needs a fix for folding margins, padding, and borders) and [svelte-collapsible](https://www.npmjs.com/package/svelte-collapsible) build on top...

@huntabyte I'm about ```js /** @type {HTMLElement} */ let dom = ... const anim = createAnim(dom, slide, {duration: 500, easing: quintOut}); ``` Exposing an element into a `dom` or smth...

> This change will mark elements as scoped and add the `svelte-xyz` class to all the elements, even though the `:not` statement does not match any elements > > ```svelte...

Wrapping `mount` in `$effect` fixes the issue. And creating the `stateObject` not during `onMount`, e.g. in ``, also fixes.

It [works on 7958eb7](https://svelte.dev/playground/dec1b43d47eb4c3aa729291f91ab8a39?version=commit-7958eb74df364510bed706a72d671e94a330c17e) which is right before #15348