@resistdesign/voltra
    Preparing search index...

    Type Alias ApplicationStateLoaderConfig<ValueType, ArgsType>

    ApplicationStateLoaderConfig: ServiceRequestConfig & {
        identifier: ApplicationStateIdentifier<ValueType>;
        manual?: boolean;
        onLoadComplete?: (success: boolean) => void;
        remoteProcedureCall: RemoteProcedureCall<ArgsType>;
        resetOnError?: boolean;
    }

    The configuration for an application state loader.

    Type Parameters

    Type Declaration

    • identifier: ApplicationStateIdentifier<ValueType>

      Identifier for the value to update in application state.

    • Optionalmanual?: boolean

      Prevent automatic loading of the application state value and call the RemoteProcedureCall manually with makeRemoteProcedureCall on the ApplicationStateLoader.

      false
      
    • OptionalonLoadComplete?: (success: boolean) => void

      Called each time the application state value has been loaded.

    • remoteProcedureCall: RemoteProcedureCall<ArgsType>

      RPC target configuration and arguments.

    • OptionalresetOnError?: boolean

      Clear the application state value on error.

      false