You are reading the docs for 0.9. The latest version is 0.10. Read this page for 0.10 →

persist

function
persistence/persist.ts:243
signature
persist(store, options): () => void

Writes state as it changes.

Parameters

NameTypeDescription
storePersistableStore
NameTypeDescription
optionsPersistOptions

Returns

() => void, A function that stops persisting and flushes anything pending.