From 21096ed64d2464118b0f32c873e81595b9790ce4 Mon Sep 17 00:00:00 2001 From: Luke Latham Date: Mon, 28 Sep 2020 10:29:41 -0500 Subject: [PATCH] Update lazy loading WASM guidance (#20027) --- aspnetcore/blazor/webassembly-lazy-load-assemblies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/blazor/webassembly-lazy-load-assemblies.md b/aspnetcore/blazor/webassembly-lazy-load-assemblies.md index ba4a417977..8122996a5a 100644 --- a/aspnetcore/blazor/webassembly-lazy-load-assemblies.md +++ b/aspnetcore/blazor/webassembly-lazy-load-assemblies.md @@ -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(); +services.AddScoped(); ``` ### User interaction with `` content