Skip to content

Commit

Permalink
Merge pull request #3750 from sbwalker/dev
Browse files Browse the repository at this point in the history
improve debug message
  • Loading branch information
sbwalker authored Feb 9, 2024
2 parents c0f5746 + d03565a commit 7c3cb11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Oqtane.Client/UI/ModuleInstance.razor
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@namespace Oqtane.UI
@inject SiteState SiteState

<div>@ModuleState.RenderMode</div>
<div>Render Mode: @ModuleState.RenderMode</div><br />
@if (PageState.Site.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Static)
{
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState"></RenderModeBoundary>
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" />
}
else
{
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="@RenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)"></RenderModeBoundary>
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState" @rendermode="@RenderMode.GetInteractiveRenderMode(PageState.Site.Runtime, PageState.Site.Prerender)" />
}

@code {
Expand Down

0 comments on commit 7c3cb11

Please sign in to comment.