From 41a3d6f62f4f95903e28feb16ab28bdad0fa2e48 Mon Sep 17 00:00:00 2001 From: Himself65 Date: Mon, 22 May 2023 12:39:07 +0800 Subject: [PATCH] fix: wrap all workspaces with Suspense (#2477) --- apps/web/src/layouts/workspace-layout.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/web/src/layouts/workspace-layout.tsx b/apps/web/src/layouts/workspace-layout.tsx index 232ccd8b40..8936c57267 100644 --- a/apps/web/src/layouts/workspace-layout.tsx +++ b/apps/web/src/layouts/workspace-layout.tsx @@ -243,12 +243,15 @@ export const WorkspaceLayout: FC = (meta && WorkspaceAdapters[meta.flavour].UI.Provider) ?? DefaultProvider; return ( <> - {/* fixme(himself65): don't re-render whole modals */} - - - - - + {/* load all workspaces is costly, do not block the whole UI */} + + + + {/* fixme(himself65): don't re-render whole modals */} + + + + }>