Type Alias PersistentStoreOptions<TState>

PersistentStoreOptions: StoreOptions<TState> & {
    serializer?: Serializer<TState>;
    storage?: StorageAPI | "local" | "session";
}

Type Parameters

  • TState extends object

Type declaration

  • Optionalserializer?: Serializer<TState>

    The serializer to use for storing the state. Defaults to JSON.

  • Optionalstorage?: StorageAPI | "local" | "session"

    The storage to use for persisting the state. Defaults to local storage.