Import
import { isRefreshing } from "@typed/async-data";Signatures
export declare const isRefreshing: <A, E>(asyncData: AsyncData<A, E>) => asyncData is Refreshing<A, E>;Why
Refreshing keeps an existing result visible while making new work observable.
Ownership and lifetime
This pure predicate acquires no resources and does not retain its argument.
Examples
import { isRefreshing, success } from "@typed/async-data"
isRefreshing(success("cached", { loaded: 0 }))