Skip to content

Blazor posibility to wait for OnInitAsync before initial rendering #21285

@isc30

Description

@isc30

This is somehow related to #9190.

When using prerendering, the full page is rendered (with all the components rendered after OnInitAsync). When the client side loads, it will not wait for OnInitAsync before the initial render, making the page "pop-in" for some content that was already there.

Rendering before OnInitAsync has finished is a great idea for implementing "loading" screens, but it doesn't play well with the initial render.

Is there any way to avoid that "pop-in" effect by disabling the initial render before OnInitAsync for all components on demand?
If not, how could it be implemented?
Thanks

Metadata

Metadata

Assignees

Labels

DocsThis issue tracks updating documentationaffected-mediumThis issue impacts approximately half of our customersarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-prerenderingIssues related to prerendering blazor componentsseverity-majorThis label is used by an internal tool

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions