From 2222323c2377c8459a1dc5e95fab3f180110637c Mon Sep 17 00:00:00 2001 From: PTKu <61538034+PTKu@users.noreply.github.com> Date: Mon, 18 Dec 2023 13:00:41 +0100 Subject: [PATCH] overrides should render in rcc to prevent re-rendering --- .../RenderableContent/RenderableContentControl.razor.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/RenderableContent/RenderableContentControl.razor.cs b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/RenderableContent/RenderableContentControl.razor.cs index c7c3e1c6..04cfe5f3 100644 --- a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/RenderableContent/RenderableContentControl.razor.cs +++ b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/RenderableContent/RenderableContentControl.razor.cs @@ -414,6 +414,12 @@ private string GetDisplayPresentationIfEmpty() } + protected override bool ShouldRender() + { + return false; + } + + public virtual void Dispose() { UnSubscribeFromPolling();