persist
functionsignature
persist(store, options): () => voidWrites state as it changes.
Parameters
| Name | Type | Description |
|---|---|---|
store | PersistableStore |
| Name | Type | Description |
|---|---|---|
options | PersistOptions |
Returns
() => void — A function that stops persisting and flushes anything pending.