interface / @typed/react

AsyncState

Re-runs the current source, retaining the last value while refreshing.

Package version
1.0.0-beta.13
Category
interface

Import

import { AsyncState } from "@typed/react";

Signatures

export interface AsyncState<A, E> extends AsyncDataView<A, E> {
    readonly refresh: () => void;
    readonly cancel: () => void;
}

Property: refresh

Re-runs the current source, retaining the last value while refreshing.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source