Skip to content

Commit d02d8dc

Browse files
CR: Include 'key' in RenderTreeFrame.ToString()
1 parent 5d7508a commit d02d8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/Components/src/RenderTree/RenderTreeFrame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ public override string ToString()
353353
return $"Attribute: (seq={Sequence}, id={AttributeEventHandlerId}) '{AttributeName}'='{AttributeValue}'";
354354

355355
case RenderTreeFrameType.Component:
356-
return $"Component: (seq={Sequence}, len={ComponentSubtreeLength}) {ComponentType}";
356+
return $"Component: (seq={Sequence}, key={ComponentKey ?? "(none)"}, len={ComponentSubtreeLength}) {ComponentType}";
357357

358358
case RenderTreeFrameType.Element:
359-
return $"Element: (seq={Sequence}, len={ElementSubtreeLength}) {ElementName}";
359+
return $"Element: (seq={Sequence}, key={ElementKey ?? "(none)"}, len={ElementSubtreeLength}) {ElementName}";
360360

361361
case RenderTreeFrameType.Region:
362362
return $"Region: (seq={Sequence}, len={RegionSubtreeLength})";

0 commit comments

Comments
 (0)