From be98f786b3eedc3993feebba0e4bf9615c0ff610 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 19 Feb 2024 14:30:09 -0500 Subject: [PATCH] add [StreamRendering] to Head component for static rendering --- Oqtane.Client/UI/Head.razor | 2 ++ Oqtane.Client/UI/Routes.razor | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Oqtane.Client/UI/Head.razor b/Oqtane.Client/UI/Head.razor index 75a6101f8..d1435cc3e 100644 --- a/Oqtane.Client/UI/Head.razor +++ b/Oqtane.Client/UI/Head.razor @@ -3,6 +3,8 @@ @using Oqtane.Shared @inject SiteState SiteState @implements IDisposable +@* the following StreamRendering attribute is required - if it is removed the framework will not render the content in static rendering *@ +@attribute [StreamRendering] @if (!string.IsNullOrEmpty(_title)) { diff --git a/Oqtane.Client/UI/Routes.razor b/Oqtane.Client/UI/Routes.razor index 7daa0cc9e..f4e63cb18 100644 --- a/Oqtane.Client/UI/Routes.razor +++ b/Oqtane.Client/UI/Routes.razor @@ -3,7 +3,7 @@ @inject IInstallationService InstallationService @inject IJSRuntime JSRuntime @inject SiteState SiteState -@* the following StreamRendering attribute is required - if it is removed the framework will not render a UI on static rendering *@ +@* the following StreamRendering attribute is required - if it is removed the framework will not render the content in static rendering *@ @attribute [StreamRendering] @if (_initialized)