Type Alias StoreBackendOptions

StoreBackendOptions: {
    saveInterval?: number;
    saveOnChange?: boolean;
    saveOnExit?: boolean;
    saveStrategy?: LooseTimeStrategyKind;
}

Options that can also be updated from Rust.

Type declaration

  • OptionalsaveInterval?: number

    Interval in milliseconds to use when saving the store. This option is only valid when StoreBackendOptions.saveStrategy is set to debounce or throttle.

    0
    
  • OptionalsaveOnChange?: boolean

    Saves the store whenever there is a state change.

    false
    
  • OptionalsaveOnExit?: boolean

    Saves the store automatically on a graceful exit.

    true
    
  • OptionalsaveStrategy?: LooseTimeStrategyKind

    Strategy to use when saving the store.

    For a detailed explanation about the differences between debounce and throttle, see: https://kettanaito.com/blog/debounce-vs-throttle

    'immediate'