Skip to content

Conversation

oroztocil
Copy link
Member

We want to register LazyAssemblyLoader in AddInteractiveWebAssemblyComponents in order to prevent the confusing situation where a component that injects LazyAssemblyLoader works in the WebAssembly client but crashes during prerendering. (Note that it works when the wasm client takes over because WebAssemblyHostBuilder.CreateDefault registers LazyAssemblyLoader.)

@github-actions github-actions bot added the area-blazor Includes: Blazor, Razor Components label May 7, 2025
@oroztocil oroztocil marked this pull request as ready for review May 7, 2025 16:45
@oroztocil oroztocil requested a review from a team as a code owner May 7, 2025 16:45
@oroztocil oroztocil requested a review from javiercn May 7, 2025 16:46
@oroztocil oroztocil merged commit aa2e0dc into main May 7, 2025
28 checks passed
@oroztocil oroztocil deleted the oroztocil/51966-lazy-assembly-loader-DI-static branch May 7, 2025 16:47
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview5 milestone May 7, 2025
@oroztocil
Copy link
Member Author

Fixes #51966

@pavelsavara
Copy link
Member

backport ?

@javiercn
Copy link
Member

javiercn commented May 7, 2025

@pavelsavara I think it might be problematic adding a reference on a patch release.

I might be wrong, but I remember one time we broke things in a patch doing something similar, so unless we need it, we can avoid it. People can do this manually if they need to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants