Merge pull request #3842 from sbwalker/dev

add [StreamRendering] to Head component for static rendering
This commit is contained in:
Shaun Walker
2024-02-19 14:30:29 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
@using Oqtane.Shared @using Oqtane.Shared
@inject SiteState SiteState @inject SiteState SiteState
@implements IDisposable @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)) @if (!string.IsNullOrEmpty(_title))
{ {

View File

@ -3,7 +3,7 @@
@inject IInstallationService InstallationService @inject IInstallationService InstallationService
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
@inject SiteState SiteState @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] @attribute [StreamRendering]
@if (_initialized) @if (_initialized)