Look at what new "minor" feature Svelte 5.56.0 just introduced ... 🤯 Release: svelte-changelog.dev/package/svel... PR: github.com/sveltejs/sve... REPL: svelte.dev/playground/9...
3 reposts18 likes
Look at what new "minor" feature Svelte 5.56.0 just introduced ... 🤯 Release: svelte-changelog.dev/package/svel... PR: github.com/sveltejs/sve... REPL: svelte.dev/playground/9...
3 reposts18 likes
minor nit: {const/let} - @const is legacy now bsky.app/profile/rich...
the single biggest criticism svelte has received over the years is 'you can't have multiple components in a file'. so we fixed it! by making them unnecessary. with declaration tags (svelte.dev/docs/svelte/...), snippets/each blocks/etc can have their own state: svelte.dev/playground/a...
Hell yes, this works in Svelte snippets svelte.dev/playground/b...
We all remember from Advent of Svelte 2024, Day 3, that snippets can be exported (🎁 svelte.dev/blog/advent-...) The new declaration pattern works here as well! svelte.dev/playground/4...
hm maybe I went a bit too far here (or rather: no clue what the use case might be) but maybe one day it'll be helpful to someone svelte.dev/playground/9...
added it my Svelte news feed as well: fubits.dev/notes/how-to...