Async Svelte: Using await Directly in Your Components
Every Svelte codebase eventually grows a little pile of scaffolding around asynchronous data. A let data = $state(null) , an $effect that fetches and assigns, a loading flag, an error flag, and a {#if loading} in the template. Or the {#await} block, which is fine for one promise but nests badly the moment you need two. Either way, you end up writing plumbing rather than describing your UI. Since…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.