Data
Something read for a component, by key.
export interface Data<T> { /** what was read (or, with `keep`, the previous key's while this one is read) */ value: T | undefined; error: Error | undefined; /** nothing read for this key yet */ loading: boolean; /** read, and being read again */ refreshing: boolean; /** `value` is the previous key's (`keep`) */ stale: boolean; /** read it again, keeping what's shown until it's read */ refresh(): Promise<void>; }