fix(routing): static Routes/HeadOutlet, InteractiveAuto on MainLayout, InteractiveServer on CmsLayout — Routes lived in server-only assembly and couldn't hydrate in WASM

This commit is contained in:
Daniel Harvey
2026-05-19 01:49:19 -04:00
parent 410b183d23
commit dba8b1d63e
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -1,3 +1,4 @@
@rendermode InteractiveServer
@inherits LayoutComponentBase
<MudThemeProvider IsDarkMode="false" Theme="@_theme" />
+2 -1
View File
@@ -1,4 +1,5 @@
@using DeepDrftWeb.Client.Controls
@rendermode InteractiveAuto
@using DeepDrftWeb.Client.Controls
@using DeepDrftWeb.Client.Controls.AudioPlayerBar
@using DeepDrftWeb.Client.Services
@using DeepDrftWeb.Client.Common
+2 -2
View File
@@ -15,11 +15,11 @@
<link rel="stylesheet" href="styles/deepdrft-styles.css" />
<ImportMap />
<link rel="icon" type="image/ico" href="deepdrft-logo.ico" />
<HeadOutlet @rendermode="InteractiveAuto" />
<HeadOutlet />
</head>
<body>
<Routes @rendermode="InteractiveAuto" />
<Routes />
<script src="_framework/blazor.web.js"></script>
<script src=@Assets["_content/MudBlazor/MudBlazor.min.js"]></script>
<script type="module">