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.

382 B
Raw Blame
import { isTransientRequestError } from '@core/util/request-error';
import type { CombinedError } from '@urql/core';

/** Retry transport failures; application errors always release the queue head. */
export function shouldRetryGraphqlMutation(error: CombinedError): boolean {
  if (error.graphQLErrors.length > 0) {
    return false;
  }
  return isTransientRequestError(error);
}