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
import { useDatabaseTableChangedSync } from '@queries/storage/databases-sync';
import { useDatabaseSubscription } from './database-subscription';
/**
* Related tables can live outside the open database; retain their gateway
* subscription too, and catch up on what it missed while nobody tracked it.
*/
export function useRelatedDatabaseSync(
databaseId: string,
refreshRows: () => void
) {
useDatabaseTableChangedSync(() => databaseId);
useDatabaseSubscription(databaseId, refreshRows);
}