Skip to content

Using ErrorBoundary for runtime errors #1174

Answered by ryansolid
St3Ko asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, inside a click handler is outside of the rendering flow. ErrorBoundaries handle issues with rendering, or reactive propagation, or view code. Throwing an error in an event handler there is no hierarchy there anymore as it is just attached to the DOM. There might be some ways to push that context in, but it isn't there by default right now.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@St3Ko
Comment options

Answer selected by St3Ko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants