Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(sidebar): favorites section missing suspense boundary (#4567)

dev-rb3a1e6a7bea47
diff --git a/js/app/packages/app/component/app-sidebar/sidebar.tsx b/js/app/packages/app/component/app-sidebar/sidebar.tsx
index f2c641f12b..72eac97b18 100644
--- a/js/app/packages/app/component/app-sidebar/sidebar.tsx
+++ b/js/app/packages/app/component/app-sidebar/sidebar.tsx
@@ -90,6 +90,7 @@ import {
type JSX,
onCleanup,
Show,
+ Suspense,
} from 'solid-js';
import { Dynamic } from 'solid-js/web';
@@ -859,7 +860,9 @@ export const AppSidebar = (props: AppSidebarProps) => {
<hr class="border-transparent my-2" />
</div>
- <FavoritesSection sidebarState={props.sidebarState ?? 'expanded'} />
+ <Suspense>
+ <FavoritesSection sidebarState={props.sidebarState ?? 'expanded'} />
+ </Suspense>
<div class="min-h-0 flex-1 overflow-hidden">
<ChannelsUnreadWidget sidebarState={props.sidebarState ?? 'expanded'} />