From 5ae683736d47062f9d0f6f88d6da292e77ef4f8f Mon Sep 17 00:00:00 2001 From: "kunal.chavhan" Date: Thu, 11 Apr 2024 16:35:56 +0530 Subject: [PATCH] feat: pass extra porps to component --- src/component/createServerComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/component/createServerComponent.tsx b/src/component/createServerComponent.tsx index 6301e93..b734d12 100644 --- a/src/component/createServerComponent.tsx +++ b/src/component/createServerComponent.tsx @@ -139,14 +139,14 @@ export function preloadServerComponent({ global = defaultGlobal }: RSCConfig) { export const ServerComponent = ({ global = defaultGlobal, source, - onAction, + ...extras }: RSCProps): JSX.Element | null => { const { Component } = React.useMemo(() => { return createServerComponent({ global }); }, [global]); if (source && Component) { - return ; + return ; } return null; };