Is the TypeScript currying still a thing? #3064
Answered
by
dai-shi
kpyszkowski
asked this question in
Q&A
-
There is the section in docs about the importance of currying to ensure type safety. I noticed that I accidentally missed the currying pattern while declaring the store: const useStore = create<State>((set)=> ({}) But it turns out it works just fine. The callback is fully typesafe without currying. I'm confused. I use |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Mar 20, 2025
Replies: 1 comment
-
It's required if you use some of middleware. #1865 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kpyszkowski
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's required if you use some of middleware. #1865 (comment)