diff --git a/aspnetcore/blazor/fundamentals/handle-errors.md b/aspnetcore/blazor/fundamentals/handle-errors.md index 1e1e2a40e2..c65d5524af 100644 --- a/aspnetcore/blazor/fundamentals/handle-errors.md +++ b/aspnetcore/blazor/fundamentals/handle-errors.md @@ -384,7 +384,7 @@ The following conditions apply to error handling with Tag Helper. Therefore, the entire HTTP request fails unless the exception is explicitly caught by developer code. +* Generating initial HTML on the server for all of the prerendered components that are part of the same page. +* Making the component interactive on the client after the browser has loaded the app's compiled code and the .NET runtime (if not already loaded) in the background. + +If a component throws an unhandled exception during prerendering, for example, during a lifecycle method or in rendering logic: + +* In Blazor Sever apps, the exception is fatal to the circuit. In prerendered Blazor WebAssembly apps, the exception prevents rendering the component. +* The exception is thrown up the call stack from the . Under normal circumstances when prerendering fails, continuing to build and render the component doesn't make sense because a working component can't be rendered. -To tolerate errors that may occur during prerendering, error handling logic must be placed inside a component that may throw exceptions. Use [`try-catch`](/dotnet/csharp/language-reference/keywords/try-catch) statements with error handling and logging. Instead of wrapping the Tag Helper in a [`try-catch`](/dotnet/csharp/language-reference/keywords/try-catch) statement, place error handling logic in the component rendered by the Tag Helper. +To tolerate errors that may occur during prerendering, error handling logic must be placed inside a component that may throw exceptions. Use [`try-catch`](/dotnet/csharp/language-reference/keywords/try-catch) statements with error handling and logging. Instead of wrapping the in a [`try-catch`](/dotnet/csharp/language-reference/keywords/try-catch) statement, place error handling logic in the component rendered by the . ## Advanced scenarios