adiGuba

Results 109 comments of adiGuba

Here a REPL : https://svelte.dev/playground/untitled?version=5.1.3#H4sIAAAAAAAACm2NzQrCMAzHX6XkPBxrPZVS8CE8OQ9zi3RQs7JGcYy9u6nzaEJIfv98rUDdA8HCmXjkiANUcB8jZrCXFXhJpVcE0X-Tp5QO-YWRi3brMv7T-4kYieUMtORC40PjakkFtA9aQH_B-GAETIHkk6uTVLu7zEtEwdBUKmgJI3GsVFJrS0qsn-I0WzXj0NImC_W-If8Z3wyW5ydu1-0D3NE81uUAAAA= `` and `` are red, `` and `` are still black because the CSS is broken

Hello, You could just use a boolean to ignore the first call. Something like this: ```js let params = $state($applicationContextStore.params) let first_run = true; $effect(() => { if (first_run) {...

> It would be really great if Svelte had a $watch/$track/$monitor rune for this purpose With signal, you need to execute the code to detect the reactive value, so they...

Hello, Why did you replace `onMount()` by `$effect()` ? Why did you delay the loading of the CSS ?

`onMount()` is only run when the component is mounted. `$effect()` is run when the component is mounted, AND when any of the reactive variable are changed. I didn't see that...

But why do you want to replace `onMount()` ?

`onMount()` and `$effect()` has two different usage... Event if it's possible, I don't see any interest in a hacky code to simulate onMount with $effect... Just use `onMount()` directly...

You can simply use something like this : ```js async function loadTab(t) { const result = await fetch("/?tab=${t}") container?.innerHTML = result } $effect(() => { loadTab(tab); }); ``` But I...

The PR #13646 is realy simple and only affect dynamic component, which are not used in your example. Also, the bug seem already present on version **5.0.0-next.268** : https://svelte.dev/playground/1841f931f328483283516f946b1a44e0?version=5.0.0-next.268 Using...

Hello, You can use `Pick` : ```diff let { showModal = $bindable(), closeWithBackdrop = false, preventCancel = false, showTransition = true, oncancel, onclose, children }: { showModal: boolean } +...