Skip to content

Documentation / @super-line/react / RequestState

Interface: RequestState<T>

Defined in: index.ts:44

State returned by useRequest.

Type Parameters

T

T

Properties

data?

optional data?: T

Defined in: index.ts:46

The last successful result, if any.


error?

optional error?: unknown

Defined in: index.ts:48

The last error thrown by an auto-fetch, refetch, or call, if any.


loading

loading: boolean

Defined in: index.ts:50

Whether a request (auto or manual) is in flight.

Released under the MIT License.