aspnetcore: Documentation for progress indicator with global InteractiveWebAssembly prerender=false is missing

We have a Blazor Web App with global InteractiveWebAssembly with no prerender. We want to implement our own custom loading progress indicator.

Docs here

The documenation for a custom loading progress indicator does not demonstrate an example where the Blazor project is a Blazor Web App with global @rendermode="new InteractiveWebAssemblyRenderMode(prerender: false)".

It seems to assume either:

Blazor Web App with per page/component interactivity. Here it demonstrates that the LoadingProgress should be added to each page that adopts @rendermode InteractiveWebAssembly. This approach is superflous since we are using global InteractiveWebAssembly.

or

Blazor WebAssembly Standalone which is not applicable for our project.

How can we implement a custom loading progress indicator for global InteractiveWebAssembly with no prerender?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

I’m going to experiment with using JS interop that runs in OnAfterRenderAsync in the main layout. That for sure would be after rendering is complete. I’ll report back shortly.

@guardrex can you take a look at what’s missing here and fill it in?