Skip to content

Question regarding Immer in combination with no store actions. #2312

Answered by dbritto-dev
JKannekens asked this question in Q&A
Discussion options

You must be logged in to vote

@JKannekens here you go -> https://codesandbox.io/p/sandbox/immer-zustand-forked-qhtm3k?file=%2Fsrc%2FApp.tsx%3A15%2C18 I bet in your case is inferring the type from the object itself but there's a workaround that you can use to deal with that

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JKannekens
Comment options

@dbritto-dev
Comment options

Answer selected by JKannekens
@JKannekens
Comment options

@naseer-medibank
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants