Add missing parameter in mocking zustand testing guide (#2142)

It seems that the parameter was missing here, resulting in returning createUncurried instead of createUncurried(stateCreator)
This commit is contained in:
sobies93 2023-10-24 12:31:42 +02:00 committed by GitHub
parent 643bb7ab11
commit 13439986a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,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