@resistdesign/voltra
    Preparing search index...

    Type Alias ApplicationStateLoader

    Access and track the loading of an application state value.

    type ApplicationStateLoader = {
        invalidate: () => void;
        latestError: any;
        loading: boolean;
        makeRemoteProcedureCall: (...args: any[]) => Promise<void>;
    }
    Index

    Properties

    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: any[]) => Promise<void>

    Trigger a remote procedure call with the provided args.

    Type Declaration

      • (...args: any[]): Promise<void>
      • Parameters

        • ...args: any[]

          Arguments to send with the request.

        Returns Promise<void>