• Persists the executor value in the synchronous storage.

    Synchronization is enabled only for activated executors. If executor is detached, then the corresponding item is removed from the storage.

    Type Parameters

    • Value = any

      The value persisted in the storage.

    Parameters

    • storage: Pick<Storage, "getItem" | "removeItem" | "setItem">

      The storage where executor value is persisted, usually a localStorage or a sessionStorage.

    • options: SynchronizeStorageOptions<Value> = {}

      Additional options.

    Returns ExecutorPlugin<Value>