From 1e4e52f1a3036fb2f8bb1344b82d32b7acc41421 Mon Sep 17 00:00:00 2001 From: Patrick Ear Date: Thu, 31 Oct 2024 16:11:34 +0100 Subject: [PATCH] return jsx.element instead of reactnode --- src/ModuleFederation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModuleFederation.tsx b/src/ModuleFederation.tsx index f0b2c48..0420b0e 100644 --- a/src/ModuleFederation.tsx +++ b/src/ModuleFederation.tsx @@ -86,7 +86,7 @@ export function FederatedComponent({ props: any; app: SolutionUI; renderOnLoading?: ReactNode; -}): ReactNode { +}) { const Component = useMemo(() => { return lazy(registerAndLoadModule(scope, module, url)); }, [scope, module, url]); @@ -145,7 +145,7 @@ export const ComponentWithFederatedImports = ({ scope: string; module: string; }[]; -}): ReactNode => { +}) => { const Component = useMemo( () => lazyWithModules(