Skip to content

Commit 6db268c

Browse files
authored
Updates inside OnInitializedAsync not streamed for POSTs (#34828)
1 parent 5415186 commit 6db268c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

aspnetcore/blazor/forms/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ In the preceding `StarshipPlainForm` component:
7878
7979
Blazor enhances page navigation and form handling by intercepting the request in order to apply the response to the existing DOM, preserving as much of the rendered form as possible. The enhancement avoids the need to fully load the page and provides a much smoother user experience, similar to a single-page app (SPA), although the component is rendered on the server. For more information, see <xref:blazor/fundamentals/routing#enhanced-navigation-and-form-handling>.
8080

81-
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for plain HTML forms.
81+
<!-- UPDATE 11.0 - Check the PU issue (backlogged as of 2/27/25 -->
82+
83+
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for plain HTML forms. Note that when `POST`ing a form, only DOM updates inside the form's handlers are streamed (for example, `@onsubmit`). Updates inside `OnInitializedAsync` are only streamed for `GET` requests. For more information, see [Allow streaming the loading phase of POST responses (`dotnet/aspnetcore` #50994)](https://github.com/dotnet/aspnetcore/issues/50994).
8284

8385
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
8486

@@ -124,7 +126,9 @@ In the preceding `Starship1` component:
124126
125127
Blazor enhances page navigation and form handling for <xref:Microsoft.AspNetCore.Components.Forms.EditForm> components. For more information, see <xref:blazor/fundamentals/routing#enhanced-navigation-and-form-handling>.
126128

127-
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for <xref:Microsoft.AspNetCore.Components.Forms.EditForm>.
129+
<!-- UPDATE 11.0 - Check the PU issue (backlogged as of 2/27/25 -->
130+
131+
[Streaming rendering](xref:blazor/components/rendering#streaming-rendering) is supported for <xref:Microsoft.AspNetCore.Components.Forms.EditForm>. Note that when `POST`ing a form, only DOM updates inside the form's handlers are streamed (for example, `OnValidSubmit`). Updates inside `OnInitializedAsync` are only streamed for `GET` requests. For more information, see [Allow streaming the loading phase of POST responses (`dotnet/aspnetcore` #50994)](https://github.com/dotnet/aspnetcore/issues/50994).
128132

129133
[!INCLUDE[](~/includes/aspnetcore-repo-ref-source-links.md)]
130134

0 commit comments

Comments
 (0)