Skip to content

Documentation / @super-line/react / RequestState

Interface: RequestState<T>

Defined in: index.ts:24

State returned by useRequest.

Type Parameters

T

T

Properties

data?

optional data?: T

Defined in: index.ts:26

The last successful result, if any.


error?

optional error?: unknown

Defined in: index.ts:28

The last error thrown by call, if any.


isLoading

isLoading: boolean

Defined in: index.ts:30

Whether a call is in flight.

Released under the MIT License.