Skip to content

Commit

Permalink
return jsx.element instead of reactnode
Browse files Browse the repository at this point in the history
  • Loading branch information
MonPote committed Oct 31, 2024
1 parent 5190275 commit 1e4e52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ModuleFederation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down Expand Up @@ -145,7 +145,7 @@ export const ComponentWithFederatedImports = <Props extends {}>({
scope: string;
module: string;
}[];
}): ReactNode => {
}) => {
const Component = useMemo(
() =>
lazyWithModules(
Expand Down

0 comments on commit 1e4e52f

Please sign in to comment.