Am I using this incorrectly? I implemented as per Documentation in MainLayout.razor with the slight change that in my <ErrorContent> section I added a button that triggers errorBoundary?.Recover();.
My test involved throwing a generic exception with a message from a child component in protected override void OnInitialized(). The result was that instead of displaying the content of @Body or the ErrorContent, there was nothing. Upon opening the browser inspector I had an empty <main></main>.
I also tried creating a custom class that implemented ErrorBoundary, but this did not help either.
Originally posted by @thirstyape in #30874 (comment)
Am I using this incorrectly? I implemented as per Documentation in
MainLayout.razorwith the slight change that in my<ErrorContent>section I added a button that triggerserrorBoundary?.Recover();.My test involved throwing a generic exception with a message from a child component in
protected override void OnInitialized(). The result was that instead of displaying the content of@Bodyor the ErrorContent, there was nothing. Upon opening the browser inspector I had an empty<main></main>.I also tried creating a custom class that implemented ErrorBoundary, but this did not help either.
Originally posted by @thirstyape in #30874 (comment)