-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Describe the bug
// App.svelte
<script>
import Test from './Test.svelte'
</script>
<svelte:boundary>
<Test />
{#snippet failed()}
Error occurred!
{/snippet}
</svelte:boundary>
// Test.svelte
<script>
import {onMount} from 'svelte'
onMount(async () => {// <<< The `async` keyword here prevents the message in `snippet failed()` above.
throw Error()
})
</script>
The message Error occurred! does not appear if onMount is async. If you remove the async keyword from the code above, everything works as expected.
Reproduction
Logs
System Info
-Severity
annoyance