Update documentation/docs/03-template-syntax/19-await-expressions.md

Co-authored-by: Tee Ming <chewteeming01@gmail.com>
pull/16822/head
Rich Harris 2 days ago committed by GitHub
parent cdb456e3f5
commit 8f338119c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -83,7 +83,7 @@ let b = $derived(await two());
To render placeholder UI, you can wrap content in a `<svelte:boundary>` with a [`pending`](svelte-boundary#Properties-pending) snippet. This will be shown when the boundary is first created, but not for subsequent updates, which are globally coordinated.
Within an existing boundary, you can indicate that asynchronous work is ongoing with [`$effect.pending()`]($effect#$effect.pending).
To indicate that asynchronous work is ongoing within an _existing_ boundary, you can conditionally render UI based on the value of [`$effect.pending()`]($effect#$effect.pending).
You can also use [`settled()`](svelte#settled) to get a promise that resolves when the current update is complete:

Loading…
Cancel
Save