Update lazy loading WASM guidance (#20027)

pull/20028/head
Luke Latham 2020-09-28 10:29:41 -05:00 committed by GitHub
parent 6708c8bcb6
commit 21096ed64d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ The `LazyAssemblyLoader` provides the `LoadAssembliesAsync` method that:
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`):
```csharp
services.AddSingleton<LazyAssemblyLoader>();
services.AddScoped<LazyAssemblyLoader>();
```
### User interaction with `<Navigating>` content