How To Handle Exceptions Globally in Blazor Hybrid without ErrorBoundary? #53577
Unanswered
bpf-coding-space
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using ErrorBoundary in Blazor Hybrid to receive exceptions thrown by child components, the page will be re-rendered. However, I want to keep the UI of the component that threw the exception because there may be many input boxes on that component, and I don't want to re-enter everything. I know that using try..catch in each method of each component is possible, but I also want to handle exceptions globally. What should I do?
Beta Was this translation helpful? Give feedback.
All reactions