ApiReactType aliases
Type Alias: AsyncState\<T\>
type AsyncState<T> =
| {
status: "loading";
}
| {
status: "done";
value: T;
}
| {
error: Error;
status: "failed";
};Defined in: packages/react/src/use-async.ts:3
Type Parameters
| Type Parameter |
|---|
T |