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(soup): fix rename not updating soup and filters not restoring on navigate (#1458)
dev-rb5be56ea22818
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsxindex 899afb0eaa..042b7eabf0 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-context.tsx@@ -379,17 +379,9 @@ export const SoupViewContextProvider: FlowComponent<return transformed;};- const rows = createMemo(- (prev) => {- const next = entities().map((e) => attachMethods(e));-- return reconcile(next)(prev);- },- [],- {- equals: false,- }- );+ const rows = createMemo(() => {+ return entities().map((e) => attachMethods(e));+ });const context = {soup,diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsxindex 79707ecb3f..73cb4a558c 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx@@ -120,8 +120,8 @@ const stateCache = new Map<filters: string[];sort: SystemSortOption[];};- virtualCache: CacheSnapshot;- scrollOffset: number;+ virtualCache?: CacheSnapshot;+ scrollOffset?: number;}>();@@ -446,16 +446,14 @@ export const SoupViewList = (props: SoupViewListProps) => {onCleanup(() => {const virtualHandle = virtualizerHandle();- if (!virtualHandle) return;-stateCache.set(getCacheKey(), {soup: {focus: soup.focus.id(),filters: soup.filters.activeIds(),sort: soup.sort.active().map((s) => s.id),},- virtualCache: virtualHandle.cache,- scrollOffset: virtualHandle.scrollOffset,+ virtualCache: virtualHandle?.cache,+ scrollOffset: virtualHandle?.scrollOffset,});});@@ -473,12 +471,12 @@ export const SoupViewList = (props: SoupViewListProps) => {soup.focus.set(cached.soup.focus);for (const id of cached.soup.filters) {- soup.filters.toggle(id);+ soup.filters.activate(id);}soup.sort.setAll(cached.soup.sort);- handle?.scrollTo(cached.scrollOffset);+ handle?.scrollTo(cached.scrollOffset ?? 0);registerFocusEffects(false);};