Bundle: just wrap it with React.Suspense

This commit is contained in:
Alex Gleason
2023-10-07 15:37:36 -05:00
parent 6b173f44be
commit 3a221e8c86
5 changed files with 35 additions and 162 deletions

View File

@ -17,7 +17,7 @@ type PageProps = {
};
interface IWrappedRoute extends RouteProps {
component: (...args: any[]) => any;
component: React.LazyExoticComponent<any>;
page?: React.ComponentType<PageProps>;
content?: React.ReactNode;
componentParams?: Record<string, any>;