Skip to content

[Blazor] AddInteractiveWebAssemblyComponents() should register LazyAssemblyLoader or a similar type. #51966

Closed
@javiercn

Description

@javiercn
  • Otherwise, lazy assembly loading breaks during prerendering.
  • The workaround/fix is to register the service yourself.
    • builder.Services.AddScoped();

This never worked in the past with webassembly, but it was not as prevalent as we were not doing prerendering.

We can start by registering a mock implementation inside AddInteractiveWebAssemblyComponents, adding a reference is not suitable in a patch release.

Metadata

Metadata

Assignees

Labels

Pillar: Complete Blazor WebPriority:1Work that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-blazor-lazy-loadingIssues related to adding support for lazy-loading in Blazor

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions