Skip to content

Commit

Permalink
chore: react key will not pass as props
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Jul 16, 2024
1 parent f966a9c commit af2d42b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/modernjs/src/runtime/createRemoteSSRComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ export function createRemoteSSRComponent<T, E extends keyof T>(info: {
: IKey;

return (props: ComponentType) => {
const { key, ...rest } = props;
const exportName = info?.export || 'default';
const LazyComponent = React.lazy(async () => {
try {
Expand All @@ -166,7 +165,7 @@ export function createRemoteSSRComponent<T, E extends keyof T>(info: {
default: () => (
<>
{assets}
<Com {...rest} />
<Com {...props} />
</>
),
};
Expand Down

0 comments on commit af2d42b

Please sign in to comment.