0

I'm trying to understand if is possible to have one <ErrorBoundary> for my whole .NET 8 Blazor server application. The "rendermode" is not globally set to be "InteractiveServer", its set on every page. The problem is, when i wrap my <Router> and throw exception in "OnInitializedAsync" it works, because this is executed on the server. But when i throw Exception from UI Action like button click, the <ErrorBoundary> is not triggered, because <ErrorBoundary> component is not "InteractiveServer". I don't want to make my whole app to be "InteractiveServer" because i have static landing page what i don't want to flood with blazor js bundle what at the end will not be used. Any ideas are welcome.

Tried to make one of my Layouts "InteractiveServer" but this is not possible because it have "RenderFragment" parameter.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.