Svelte · Senior · Question 13 of 75

What does experimental async Svelte (5.36+) allow?

<script>
  let { id } = $props();
  const user = $derived(await getUser(id));
</script>

<h1>{user.name}</h1>

Explanation

It's opt-in because it's not yet considered stable. Combined with <svelte:boundary> it handles pending states.

Further reading

Problem with a question

Svelte · Senior · question 13

Test yourself

Take the Svelte · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz