Svelte · Senior · Question 68 of 75
What does $effect.pending() return in async Svelte?
{#if $effect.pending()}
<p>Updating…</p>
{/if}- ✓Correct answer: The number of promises pending in the current boundary, not counting child boundaries
- 2A promise that resolves when all effects finish
- 3Whether the component is still mounting
Explanation
It's the way to show progress for updates after the first load, when the boundary's pending snippet is no longer used.