createWithEqualityFn
type error with immer
middleware
#1992
Replies: 1 comment
-
Silly issue. just needed to pass the default equality function as the 2nd arg. Didn't get that error message at first so wasn't clear. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When attempting to pass a custom equality function to my
useStore
which was usingcreate
, i received the message that it was deprecated.Found your recent PR updating docs: #1985
So with this:
typescript yells at me:
No overload expects 1 arguments, but overloads do exist that expect either 0 or 2 arguments.ts(2575)
Beta Was this translation helpful? Give feedback.
All reactions