ic-reactor
    Preparing search index...

    Type Alias UseSharedCallState<A, M>

    State for shared calls, including the result, error, and loading status.

    type UseSharedCallState<A, M extends types.FunctionName<A>> = {
        data: types.ActorMethodReturnType<A[M]> | undefined;
        error: utils.agent.AgentError | undefined;
        loading: boolean;
        isLoading: boolean;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    data: types.ActorMethodReturnType<A[M]> | undefined

    The data returned from the call, or undefined if not yet available.

    error: utils.agent.AgentError | undefined

    The error that occurred during the call, or undefined if none.

    loading: boolean

    Use isLoading instead. Indicates whether the call is in progress.

    isLoading: boolean

    Indicates whether the call is in progress.