Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix: Add suspense boundaries (#727)
dev-rbf9697aadb2f1
diff --git a/js/app/packages/app/component/split-layout/SplitLayout.tsx b/js/app/packages/app/component/split-layout/SplitLayout.tsxindex cc50a34d33..15778133dd 100644--- a/js/app/packages/app/component/split-layout/SplitLayout.tsx+++ b/js/app/packages/app/component/split-layout/SplitLayout.tsx@@ -15,6 +15,8 @@ import {on,onCleanup,type Setter,+ Show,+ Suspense,} from 'solid-js';import { Dynamic } from 'solid-js/web';import { gutterSize } from '../../../block-theme/signals/themeSignals';@@ -310,14 +312,20 @@ export function SplitLayoutContainer(props: SplitLayoutContainerProps) {><For each={ids()}>{(id, index) => (- <Resize.Panel id={id} minSize={400} index={index()}>- <SplitPanel- split={splits()[index()]!}- handle={splitManager.getSplit(id)!}- active={activeSplitSelector(id)}- setPanelRef={(panelRef) => panelRefs.set(id, panelRef)}- />- </Resize.Panel>+ <Show when={splitManager.getSplit(id)}>+ {(handle) => (+ <Suspense>+ <Resize.Panel id={id} minSize={400} index={index()}>+ <SplitPanel+ split={splits()[index()]!}+ handle={handle()}+ active={activeSplitSelector(id)}+ setPanelRef={(panelRef) => panelRefs.set(id, panelRef)}+ />+ </Resize.Panel>+ </Suspense>+ )}+ </Show>)}</For></Resize.Zone>@@ -403,7 +411,9 @@ function SplitPanel(props: SplitPanelProps) {attachHotKeys(ref);}}>- <Dynamic component={props.split.mount.element} />+ <Suspense>+ <Dynamic component={props.split.mount.element} />+ </Suspense></SplitContainer></SplitPanelContext.Provider>);