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
commit 6f3fd99130
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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>
}