fix(docs): add missing param in mocked create (Vitest guide) (#2166)

This commit is contained in:
Rustam 2023-11-01 19:25:51 +05:00 committed by GitHub
parent 492637a880
commit c500f70cbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ const createUncurried = <T>(stateCreator: zustand.StateCreator<T>) => {
}
// when creating a store, we get its initial state, create a reset function and add it in the set
export const create = (<T>() => {
export const create = (<T>(stateCreator: zustand.StateCreator<T>) => {
console.log('zustand create mock')
// to support curried version of create