mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
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:
parent
643bb7ab11
commit
13439986a8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user