Preserve existing DOM elements when updating streaming SSR content #47258
Labels
area-blazor
Includes: Blazor, Razor Components
enhancement
This issue represents an ask for new feature or an enhancement to an existing one
feature-full-stack-web-ui
Full stack web UI with Blazor
Milestone
Uh oh!
There was an error while loading. Please reload this page.
More generally there are three related scenarios:
A. Passively-rendered content being updated with new passively-rendered content
B. Passively-rendered content being replaced with new interactive content
C. Interactively-rendered content being preserved when passively-rendered ancestors are updated
This issue covers case A, which is needed for Blazor United.
Case B is out of scope for this issue because it's not required for Blazor United and is vastly more complex to implement (it involves some new way to render interactive content into a non-document buffer (e.g., a
DocumentFragment
) and migrate all possible kinds of internal interactive rendering state that background buffer into the real DOM elements). Case B is covered by #42561.Case C is needed for Blazor United will be cheap to implement given that we already implement case A.
The text was updated successfully, but these errors were encountered: