mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
remove redundant dash in persist parameters (#3170)
This commit is contained in:
parent
c61999bacd
commit
149c286342
@ -52,7 +52,7 @@ persist<T, U>(stateCreatorFn: StateCreator<T, [], []>, persistOptions?: PersistO
|
||||
Usually, you will return an object with the methods you want to expose.
|
||||
- `persistOptions`: An object to define storage options.
|
||||
- `name`: A unique name of the item for your store in the storage.
|
||||
- **optional** `storage`: Defaults to `createJSONStorage(() => localStorage)`. -
|
||||
- **optional** `storage`: Defaults to `createJSONStorage(() => localStorage)`.
|
||||
- **optional** `partialize`: A function to filter state fields before persisting it.
|
||||
- **optional** `onRehydrateStorage`: A function or function returning a function that allows
|
||||
custom logic before and after state rehydration.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user