Interface UseCapabilitiesResult

Result of useCapabilities.

interface UseCapabilitiesResult {
    data: undefined | HonuaServerCompatibility;
    dataUpdatedAt?: number;
    error: unknown;
    isFetching: boolean;
    isLoading: boolean;
    refetch: (() => void);
    status: QueryStatus;
}

Hierarchy (view full)

Properties

data: undefined | HonuaServerCompatibility

Last resolved value. Preserved across background refetches.

dataUpdatedAt?: number

Epoch milliseconds of the last successful fetch, undefined until one resolves. Drives stale-while-revalidate decisions.

error: unknown

Last rejection reason, cleared on the next successful fetch.

isFetching: boolean

True whenever a fetch is in flight, including background refetches.

isLoading: boolean

True only while the first fetch (no data yet) is in flight.

refetch: (() => void)
status: QueryStatus