Skip to content
Myr

docs(persist): fix signature to require persistOptions (#3477)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Pavan Shinde · committed by GitHub · parent 95d3f33 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/reference/middlewares/persist.md+2 added-2 removed
29 unmodified lines
3031### Signature3233```ts34persist<T, U>(stateCreatorFn: StateCreator<T, [], []>, persistOptions?: PersistOptions<T, U>): StateCreator<T, [['zustand/persist', U]], []>34persist<T, U>(stateCreatorFn: StateCreator<T, [], []>, persistOptions: PersistOptions<T, U>): StateCreator<T, [['zustand/persist', U]], []>35```3637### Mutator38
2 unmodified lines
41```4243## Reference4445### `persist(stateCreatorFn)`45### `persist(stateCreatorFn, persistOptions)`4647#### Parameters4849- `stateCreatorFn`: A function that takes `set` function, `get` function and `store` as arguments.
937 unmodified lines