Skip to content

Preserve existing DOM elements when updating streaming SSR content #47258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SteveSandersonMS opened this issue Mar 16, 2023 · 1 comment
Closed
Assignees
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

Comments

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented Mar 16, 2023

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.

@SteveSandersonMS SteveSandersonMS added area-blazor Includes: Blazor, Razor Components feature-full-stack-web-ui Full stack web UI with Blazor labels Mar 16, 2023
@SteveSandersonMS SteveSandersonMS added this to the 8.0-preview4 milestone Mar 16, 2023
@SteveSandersonMS SteveSandersonMS self-assigned this Mar 16, 2023
@ghost ghost added the untriaged label Mar 16, 2023
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Apr 25, 2023
@SteveSandersonMS SteveSandersonMS changed the title Preserve existing DOM elements when updating statically-rendered content Preserve existing DOM elements when updating streaming SSR content Jun 13, 2023
@SteveSandersonMS
Copy link
Member Author

Done in #48258

@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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
Projects
None yet
Development

No branches or pull requests

3 participants
@SteveSandersonMS @mkArtakMSFT and others