Description
Describe the bug
If the reset
function is called when the <svelte:boundary>
is not showing the failed
snippet then nothing within the <svelte:boundary>
will be rendered, not the regular content nor the failed
snippet.
Original issue description
I have a component which has an inner $derived
that occasionally throws an exception. This exception is then handled via a <svelte:boundary>
element higher up. The first time the exception is thrown it is properly caught by the boundary. However, after resetting the boundary the exception is no longer handled if thrown again. In fact, nothing gets rendered in that case, not even the failed
snippet.
Reproduction
https://svelte.dev/playground/2a0c3ca8ec4a44f396c5cc1bdd65dece?version=5.34.0
Expected behaviour: calling reset
should be a no-op or cause the contents of the boundary to be re-rendered. Either behaviour would be fine.
Logs
System Info
System:
OS: Linux 6.6 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (18) x64 13th Gen Intel(R) Core(TM) i7-13700H
Memory: 16.60 GB / 31.18 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 23.11.1 - /usr/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 10.9.2 - /usr/bin/npm
pnpm: 10.3.0 - /usr/bin/pnpm
npmPackages:
svelte: ^5.33.18 => 5.33.18
Severity
annoyance