@resistdesign/voltra
    Preparing search index...

    Type Alias ApplicationStateLoader<ValueType, ArgsType>

    ApplicationStateLoader: ApplicationStateValueController<ValueType> & {
        invalidate: () => void;
        latestError: any;
        loading: boolean;
        makeRemoteProcedureCall: (...args: ArgsType) => Promise<void>;
    }

    Access and track the loading of an application state value.

    Type Parameters

    Type Declaration

    • invalidate: () => void

      Force a reload by invalidating the internal cache key.

    • latestError: any

      The most recent error, if any.

    • loading: boolean

      Whether the current request is in flight.

    • makeRemoteProcedureCall: (...args: ArgsType) => Promise<void>

      Trigger a remote procedure call with the provided args.