What rendering errors does handleError in hooks.client.js catch? #8294
Unanswered
EmilTholin
asked this question in
Q&A
Replies: 2 comments
-
This should be answered or docs be fixed (if no such case)! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same issue! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This interesting question was asked in the Discord chat.
This following setup throws an error that is caught by
handleError
inhooks.client.js
:If we remove the error in
load
above and change+page.svelte
to the following instead...... the error is not caught by
handleError
inhooks.client.js
.The documentation states that "If an unexpected error is thrown during loading or rendering, this function will be called...". Am I misunderstanding something about how
handleError
works in the client, or should perhaps the documentation be rephrased somewhat?Beta Was this translation helpful? Give feedback.
All reactions