From 9b9c28e57682be608fa3a9a3cc46ba8bda415f55 Mon Sep 17 00:00:00 2001 From: Yuriy Durov Date: Sun, 15 Sep 2024 21:14:39 +0400 Subject: [PATCH] Cleanup --- .../RenderStrategies/PersistentComponentRenderStrategy.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs b/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs index d7ded6e..f9798f7 100644 --- a/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs +++ b/src/BitzArt.Blazor.State/RenderStrategies/PersistentComponentRenderStrategy.cs @@ -19,9 +19,11 @@ internal class PersistentComponentRenderStrategy(PersistentComponentBase compone protected override async Task RunInitAndSetParametersAsync() { // TODO: Dotnet 9 - //if (Handle.RendererInfo.IsInteractive) - var shouldInitializeState = true; + //var isInteractive = Handle.RendererInfo.IsInteractive; var isInteractive = RendererInfo.IsInteractive; + + var shouldInitializeState = true; + if (isInteractive) { var restored = await TryRestoringStateAsync();