Interface QueryResult<TData, TError>

interface QueryResult<TData, TError> {
    data?: TData;
    error?: TError;
    isLoading?: boolean;
}

Type Parameters

  • TData
  • TError = Error

Hierarchy (view full)

Properties

data?: TData

Stores current query data

error?: TError

Stores current query error

isLoading?: boolean

Is true while query is loading

Generated using TypeDoc