Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AsyncHookContract<T>

Async hook

Extends the return type defined by useAsync.

For more information about useAsync:

see

react-async-hook documentation

Type parameters

  • T

    Return type in the result attribute, e.g. a Nation

Hierarchy

Index

Properties

Properties

Optional error

error: ApiError | Error

loading

loading: boolean

Optional result

result: T

Generated using TypeDoc