Interface DebugEventTypes

A mapping type of debug event types to their payloads.

Remarks

These are the debug events that dispatchDebug accepts mapped to the payloads these events carry. Debug events are only used in development and only consumed by the urql-devtools.

Hierarchy

  • DebugEventTypes

Properties

cacheHit: {
    value: any;
}

Signals to the devtools that a cache exchange will deliver a cached result.

Type declaration

  • value: any
cacheInvalidation: {
    response: OperationResult<any, AnyVariables>;
    typenames: string[];
}

Signals to the devtools that a cache exchange will invalidate a cached result.

Type declaration

fetchError: {
    fetchOptions: RequestInit;
    url: string;
    value: Error;
}

Signals to the devtools that a fetch exchange has failed to execute a GraphQL API request.

Type declaration

fetchRequest: {
    fetchOptions: RequestInit;
    url: string;
}

Signals to the devtools that a fetch exchange will make a GraphQL API request.

Type declaration

fetchSuccess: {
    fetchOptions: RequestInit;
    url: string;
    value: object;
}

Signals to the devtools that a fetch exchange has received a GraphQL API response successfully.

Type declaration

retryRetrying: {
    retryCount: number;
}

Signals to the devtools that a retry exchange will retry an Operation.

Type declaration

  • retryCount: number

Generated using TypeDoc