Matthias Andrasch on Nostr: Got critical feedback on bsky about this: ...
Got critical feedback on bsky about this: https://bsky.app/profile/paolo.ricciuti.me/post/3lf464y4erc2h
Now I'm a bit undecided if I should $derive from '$page/state' as suggested:
import {page} from '$page/state';
// ...
const selectedTags = $derived(page.url.searchParams.get("tags"));
- or if I should keep the current approach with $effect and bind:group for simplicity. 🤷🤔
#Svelte #SvelteKit #JavaScript
Now I'm a bit undecided if I should $derive from '$page/state' as suggested:
import {page} from '$page/state';
// ...
const selectedTags = $derived(page.url.searchParams.get("tags"));
- or if I should keep the current approach with $effect and bind:group for simplicity. 🤷🤔
#Svelte #SvelteKit #JavaScript