You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blazor: Add element/component name for duplicate key (#24153)
* Add element/component name for duplicate key
* Add in keyword for frame param
Co-authored-by: Javier Calvarro Nelson <[email protected]>
Co-authored-by: Javier Calvarro Nelson <[email protected]>
thrownewInvalidOperationException($"More than one sibling has the same key value, '{key}'. Key values must be unique.");
360
+
switch(frame.FrameType)
361
+
{
362
+
caseRenderTreeFrameType.Component:
363
+
thrownewInvalidOperationException($"More than one sibling of component '{frame.ComponentType}' has the same key value, '{key}'. Key values must be unique.");
364
+
365
+
caseRenderTreeFrameType.Element:
366
+
thrownewInvalidOperationException($"More than one sibling of element '{frame.ElementName}' has the same key value, '{key}'. Key values must be unique.");
367
+
368
+
default:
369
+
thrownewInvalidOperationException($"More than one sibling has the same key value, '{key}'. Key values must be unique.");
0 commit comments