Skip to content

Commit

Permalink
fix: handle duplicated entries in RenderBatch.UpdatedComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
egil committed Jul 13, 2023
1 parent dced948 commit 4353f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bunit.core/Rendering/RenderEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4353f88

Please sign in to comment.