Skip to content

set() with function does not throw type errors when return data is incorrect #2879

Discussion options

You must be logged in to vote

Hmm, seems to be a limitation or something I haven't understood yet in the world of TS then. Closing this since it's obviously not a bug in zustand. Thanks for the help @dai-shi 🤝

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@dai-shi
Comment options

@mikaelkarlsson-se
Comment options

@dai-shi
Comment options

@mikaelkarlsson-se
Comment options

Answer selected by mikaelkarlsson-se
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants