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.

541 B
Raw Blame
import { queryClient } from '../client';
import { soupKeys } from '../soup/keys';

/** Folder previews are intentionally outside both shared entity caches. */
export function invalidateEmailFolderQueries() {
  return queryClient.invalidateQueries({
    queryKey: soupKeys.astItems._def,
    predicate: (query) =>
      query.queryKey.some(
        (part) =>
          typeof part === 'object' &&
          part !== null &&
          'emailView' in part &&
          (part.emailView === 'spam' || part.emailView === 'trash')
      ),
  });
}