Logos DX
    Preparing search index...

    Type Alias FetchContextMutationResult<T, RH>

    type FetchContextMutationResult<T, RH = Record<string, string>> = {
        called: boolean;
        cancel: () => void;
        data: T | null;
        error: FetchError | null;
        loading: boolean;
        mutate: <Payload = unknown>(payload?: Payload) => Promise<T>;
        reset: () => void;
        response: FetchResponse<T, any, any, RH> | null;
    }

    Type Parameters

    Index

    Properties

    called: boolean
    cancel: () => void
    data: T | null
    error: FetchError | null
    loading: boolean
    mutate: <Payload = unknown>(payload?: Payload) => Promise<T>
    reset: () => void
    response: FetchResponse<T, any, any, RH> | null