Options of the synchronizeStorage plugin.

interface SynchronizeStorageOptions<Value> {
    serializer?: Serializer<ExecutorState<Value>>;
    storageKey?: string | ((executor: Executor<any>) => string);
}

Type Parameters

  • Value

Properties

The storage record serializer.

storageKey?: string | ((executor: Executor<any>) => string)

A storage key, or a callback that returns the storage key.

By default, a serialized Executor.key is used as a storage key.