docs: note when boundaries were added (#14487)

pull/14489/head
Rich Harris 4 weeks ago committed by GitHub
parent f75a9a566e
commit 9fcfd7f0d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,6 +6,9 @@ title: <svelte:boundary>
<svelte:boundary onerror={handler}>...</svelte:boundary> <svelte:boundary onerror={handler}>...</svelte:boundary>
``` ```
> [!NOTE]
> This feature was added in 5.3.0
Boundaries allow you to guard against errors in part of your app from breaking the app as a whole, and to recover from those errors. Boundaries allow you to guard against errors in part of your app from breaking the app as a whole, and to recover from those errors.
If an error occurs while rendering or updating the children of a `<svelte:boundary>`, or running any [`$effect`]($effect) functions contained therein, the contents will be removed. If an error occurs while rendering or updating the children of a `<svelte:boundary>`, or running any [`$effect`]($effect) functions contained therein, the contents will be removed.

Loading…
Cancel
Save