Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IState<TData>

Hook state

Type parameters

  • TData

Hierarchy

Index

Properties

called

called: boolean

Boolean helper to know if the query has already been called, specially useful for lazy queries and mutations.

data

data: Maybe<TData>

Data expected from the hook

Optional errors

errors: GraphQLError[]

GraphQL errors found on the hook call, if any.

fetchState

fetchState: FetchState

Fetch state of the hook.

'waiting' | 'loading' | 'error' | 'done'

Generated using TypeDoc