removing StreamRendering attribute as recent SDK seems to have resolved earlier rendering issues
This commit is contained in:
parent
c52ad68d92
commit
b63f73ef93
|
@ -3,8 +3,6 @@
|
||||||
@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))
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
@namespace Oqtane.UI
|
@namespace Oqtane.UI
|
||||||
@inject SiteState SiteState
|
@inject SiteState SiteState
|
||||||
|
|
||||||
@if (PageState.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Interactive)
|
@if (PageState.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Static)
|
||||||
{
|
{
|
||||||
<StreamRenderingDisabled ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" />
|
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" />
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<StreamRenderingEnabled ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" />
|
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="@InteractiveRenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
|
||||||
}
|
}
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
@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 the content in static rendering *@
|
|
||||||
@attribute [StreamRendering]
|
|
||||||
|
|
||||||
@if (_initialized)
|
@if (_initialized)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
@attribute [StreamRendering(false)]
|
|
||||||
|
|
||||||
@if (PageState.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Static)
|
|
||||||
{
|
|
||||||
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" />
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="@InteractiveRenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
|
|
||||||
}
|
|
||||||
|
|
||||||
@code {
|
|
||||||
[Parameter]
|
|
||||||
public SiteState SiteState { get; set; }
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public PageState PageState { get; set; }
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public Module ModuleState { get; set; }
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
@attribute [StreamRendering(true)]
|
|
||||||
|
|
||||||
@if (PageState.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Static)
|
|
||||||
{
|
|
||||||
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" />
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="@InteractiveRenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
|
|
||||||
}
|
|
||||||
|
|
||||||
@code {
|
|
||||||
[Parameter]
|
|
||||||
public SiteState SiteState { get; set; }
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public PageState PageState { get; set; }
|
|
||||||
|
|
||||||
[Parameter]
|
|
||||||
public Module ModuleState { get; set; }
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user