Skip to content

Infer Immer middleware type for setState from setState instead of getState #1621

Answered by dai-shi
chrisvander asked this question in General
Discussion options

You must be logged in to vote

https://tsplay.dev/WGgq9W
Now, I know why. ComputedStore has to be inferred before passing to the next middleware.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@chrisvander
Comment options

@dai-shi
Comment options

@chrisvander
Comment options

@dai-shi
Comment options

Answer selected by chrisvander
@chrisvander
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants