Post

Very interesting... This will enable us to use `await` directly inside `<script>`, `$derived` and template code. In a SvelteKit context, this potentially means that the `load` function will not remain the place to fetch your data, but that components can do that themselves. #svelte

github.comAsynchronous Svelte · sveltejs svelte · Discussion #15845This is a long document; get yourself a cup of tea. tl;dr You can now use the await keyword in Svelte — in your <script>, inside $derived expressions, and in your markup — by installing the async b...

1 repost7 likes

No replies yet.