Svelte · Senior · Question 68 of 75

What does $effect.pending() return in async Svelte?

{#if $effect.pending()}
  <p>Updating…</p>
{/if}

Explanation

It's the way to show progress for updates after the first load, when the boundary's pending snippet is no longer used.

Further reading

Problem with a question

Svelte · Senior · question 68

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