Class State<T>Protected

Type Parameters

  • T = unknown

Hierarchy

  • State

Constructors

  • Type Parameters

    • T = unknown

    Returns State<T>

Properties

error: null | Error = null

If an exception was thrown while making the request, the error thrown will be here.

isRejected: boolean = false

True if the request has failed

isResolved: boolean = false

True if the request has succeeded

status: null | number = null

HTTP status code.

value: null | T = null

The resolved value of the fetch request

Accessors

Generated using TypeDoc