Blazor webassembly does not initialize components in the LayoutComponentBase
after webassembly resources downloaded.
#50585
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
investigate
Status: Resolved
Milestone
Is there an existing issue for this?
Describe the bug
When blazor has downloaded all webassembly resources, it initializes, but also forgets to initialize components that have
@rendermode="@RenderMode.Auto"
. This will not happen if the resources are already cached.Expected Behavior
Blazor should initialize all component that have
RenderModeAuto
or@rendermode="@RenderMode.Auto"
.Steps To Reproduce
I have create a repository for this issue: https://github.com/IvanDmitriev1/BlazorIssue
Open Dialog
buttonDialogProvider
that is inMainLayout
isn't initializedExceptions (if any)
No response
.NET Version
8.0.100-rc.2.23462.28
Anything else?
.NET SDK:
Version: 8.0.100-rc.2.23462.28
Commit: 5e71ffbd44
Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\8.0.100-rc.2.23462.28\
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 8.0.0-rc.2.23431.9
Architecture: x64
Commit: 3c48925a6c
RID: win-x64
.NET SDKs installed:
6.0.414 [C:\Program Files\dotnet\sdk]
7.0.401 [C:\Program Files\dotnet\sdk]
8.0.100-rc.2.23462.28 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0-rc.2.23455.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0-rc.2.23431.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.0-rc.2.23454.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
Not set
global.json file:
Not found
The text was updated successfully, but these errors were encountered: