Skip to content

Commit d500b4d

Browse files
committed
Fix markers
1 parent 8ff24ed commit d500b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Endpoints/src/Rendering/EndpointHtmlRenderer.Streaming.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private void WriteComponentHtml(int componentId, TextWriter output, bool allowBo
212212
_visitedComponentIdsInCurrentStreamingBatch?.Add(componentId);
213213

214214
var componentState = (EndpointComponentState)GetComponentState(componentId);
215-
var renderBoundaryMarkers = allowBoundaryMarkers && componentState.StreamRendering && !_isHandlingErrors;
215+
var renderBoundaryMarkers = allowBoundaryMarkers && componentState.StreamRendering;
216216

217217
ComponentEndMarker? endMarkerOrNull = default;
218218

@@ -248,7 +248,7 @@ private void WriteComponentHtml(int componentId, TextWriter output, bool allowBo
248248
output.Write("-->");
249249
}
250250

251-
if (endMarkerOrNull is { } endMarker && !_isHandlingErrors)
251+
if (endMarkerOrNull is { } endMarker)
252252
{
253253
var serializedEndRecord = JsonSerializer.Serialize(endMarker, ServerComponentSerializationSettings.JsonSerializationOptions);
254254
output.Write("<!--Blazor:");

0 commit comments

Comments
 (0)