fix: remove the useless component key

This commit is contained in:
MrWindlike 2024-07-19 11:22:15 +08:00
parent b55df8d29f
commit 7e88dfeb44

View File

@ -172,7 +172,6 @@ export const ImplWrapperMain = React.forwardRef<HTMLDivElement, ImplWrapperProps
<Impl
data-sunmao-id={c.id}
ref={ref}
key={c.id}
{...omit(props, ['slotContext'])}
{...mergedProps}
slotsElements={slotElements}
@ -185,7 +184,6 @@ export const ImplWrapperMain = React.forwardRef<HTMLDivElement, ImplWrapperProps
return (
<ComponentErrorBoundary
key={c.id}
componentId={c.id}
onRef={onRef}
onRecoverFromError={onRecoverFromError}