Skip to content

Commit 21096ed

Browse files
authored
Update lazy loading WASM guidance (#20027)
1 parent 6708c8b commit 21096ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnetcore/blazor/webassembly-lazy-load-assemblies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ The `LazyAssemblyLoader` provides the `LoadAssembliesAsync` method that:
9090
The framework's lazy loading implementation supports lazy loading with prerendering in a hosted Blazor solution. During prerendering, all assemblies, including those marked for lazy loading, are assumed to be loaded. Manually register `LazyAssemblyLoader` in the *Server* project's `Startup.ConfigureServices` method (`Startup.cs`):
9191

9292
```csharp
93-
services.AddSingleton<LazyAssemblyLoader>();
93+
services.AddScoped<LazyAssemblyLoader>();
9494
```
9595

9696
### User interaction with `<Navigating>` content

0 commit comments

Comments
 (0)