remove redundant dash in persist parameters (#3170)

This commit is contained in:
Henry8192 2025-07-07 19:07:57 -04:00 committed by GitHub
parent c61999bacd
commit 149c286342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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. Usually, you will return an object with the methods you want to expose.
- `persistOptions`: An object to define storage options. - `persistOptions`: An object to define storage options.
- `name`: A unique name of the item for your store in the storage. - `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** `partialize`: A function to filter state fields before persisting it.
- **optional** `onRehydrateStorage`: A function or function returning a function that allows - **optional** `onRehydrateStorage`: A function or function returning a function that allows
custom logic before and after state rehydration. custom logic before and after state rehydration.