improved rendering optimization

This commit is contained in:
sbwalker
2024-01-05 11:49:57 -05:00
parent 3dc28c7291
commit 02c22c1894
9 changed files with 30 additions and 14 deletions

View File

@ -21,7 +21,7 @@
{
try
{
if (PageState.RenderModuleInstance(ModuleState))
if (ShouldRender())
{
var htmltext = await HtmlTextService.GetHtmlTextAsync(ModuleState.ModuleId);
if (htmltext != null)

View File

@ -113,6 +113,11 @@ namespace Oqtane.Modules
}
}
protected override bool ShouldRender()
{
return PageState.RenderId == ModuleState.RenderId;
}
// path method
public string ModulePath()