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.

502 B
Raw Blame
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);
}