-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Waiting indefinitely if there is no catch block #5401
Comments
Presumably the result of #5149 - I'm guessing there were other effects to rethrowing the error, but I haven't looked into this yet. |
Checking the console, it seems like the error is thrown and since it was unhandled, the content in await block is shown. Shouldn't this be the expected behaviour? We can't satisfy both #5129 and this right? |
No, we can still re-throw/re-emit the unhandled rejection after we update the DOM. That feature request was just that there be an unhandled rejection to listen for globally. |
This is fixed in 3.25.1 - https://svelte.dev/repl/791ef575157744ca95fc53c867048c2e?version=3.25.1 |
We get an infinite wait if promise rejection and there is no catch block in template.
Svelte version 3.25.0
REPL: https://svelte.dev/repl/791ef575157744ca95fc53c867048c2e?version=3.25.0
But in svelte version 3.24.1 is everything works.
REPL: https://svelte.dev/repl/aafb907381524e5db23c1ae7f2c94b8f?version=3.24.1
The documentation says the catch block is optional https://svelte.dev/docs#await
The text was updated successfully, but these errors were encountered: