improved rendering optimization
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
{
|
||||
try
|
||||
{
|
||||
if (PageState.RenderModuleInstance(ModuleState))
|
||||
if (ShouldRender())
|
||||
{
|
||||
var htmltext = await HtmlTextService.GetHtmlTextAsync(ModuleState.ModuleId);
|
||||
if (htmltext != null)
|
||||
|
@ -113,6 +113,11 @@ namespace Oqtane.Modules
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool ShouldRender()
|
||||
{
|
||||
return PageState.RenderId == ModuleState.RenderId;
|
||||
}
|
||||
|
||||
// path method
|
||||
|
||||
public string ModulePath()
|
||||
|
Reference in New Issue
Block a user