Logos DX
    Preparing search index...

    Type Alias FetchContextMutationResult<T, RH>

    type FetchContextMutationResult<T, RH = Record<string, string>> = {
        called: boolean;
        cancel: () => void;
        data: T | null;
        failure: FetchFailure<T, RH> | null;
        loading: boolean;
        mutate: <Payload = unknown>(payload?: Payload) => Promise<T | undefined>;
        reset: () => void;
    }

    Type Parameters

    Index

    Properties

    called: boolean
    cancel: () => void
    data: T | null
    failure: FetchFailure<T, RH> | null
    loading: boolean
    mutate: <Payload = unknown>(payload?: Payload) => Promise<T | undefined>
    reset: () => void