Type alias ApplicationStateLoaderConfig

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

The configuration for an application state loader.

Type declaration

  • identifier: ApplicationStateIdentifier
  • Optional manual?: boolean

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

    Default

    false
    
  • Optional onLoadComplete?: ((success) => void)

    Called each time the application state value has been loaded.

      • (success): void
      • Parameters

        • success: boolean

        Returns void

  • remoteProcedureCall: RemoteProcedureCall
  • Optional resetOnError?: boolean

    Clear the application state value on error.

    Default

    false