Merge pull request #3746 from sbwalker/dev

render mode optimization
This commit is contained in:
Shaun Walker
2024-02-08 15:58:44 -05:00
committed by GitHub

View File

@ -1,7 +1,7 @@
@namespace Oqtane.UI
@inject SiteState SiteState
@if (ModuleState.RenderMode == RenderModes.Static)
@if (PageState.Site.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Static)
{
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState"></RenderModeBoundary>
}