From 4353f88590c8ab24ac49809bbfb177c7ddc4cad2 Mon Sep 17 00:00:00 2001 From: Egil Hansen Date: Thu, 13 Jul 2023 15:56:40 +0000 Subject: [PATCH] fix: handle duplicated entries in RenderBatch.UpdatedComponents --- src/bunit.core/Rendering/RenderEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bunit.core/Rendering/RenderEvent.cs b/src/bunit.core/Rendering/RenderEvent.cs index 09246b29d..77a823ee0 100644 --- a/src/bunit.core/Rendering/RenderEvent.cs +++ b/src/bunit.core/Rendering/RenderEvent.cs @@ -49,7 +49,7 @@ internal void SetUpdated(int componentId, bool hasChanges) { var status = GetOrCreateStatus(componentId); status.Rendered = true; - status.Changed = hasChanges; + status.Changed = status.Changed || hasChanges; } internal void SetUpdatedApplied(int componentId)