From 0b7475e7ea173c50806cf949e0d2e4bf1047724c Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Thu, 21 May 2026 10:02:40 -0400 Subject: [PATCH] fix(MainLayout): remove redundant StateHasChanged() from OnInitialized to prevent nested ProcessRenderQueue and NullReferenceException in MudThemeProvider during SSR prerender --- DeepDrftPublic.Client/Layout/MainLayout.razor | 2 -- 1 file changed, 2 deletions(-) diff --git a/DeepDrftPublic.Client/Layout/MainLayout.razor b/DeepDrftPublic.Client/Layout/MainLayout.razor index 00b043f..b5d3d33 100644 --- a/DeepDrftPublic.Client/Layout/MainLayout.razor +++ b/DeepDrftPublic.Client/Layout/MainLayout.razor @@ -76,8 +76,6 @@ { Theme = DeepDrftPalettes.Default, }; - - StateHasChanged(); } private ThemeManagerTheme _themeManager;