Partialize TypeScript error #1317
-
I have the following simple code where I try to setup localstorage. Problem here is that TypeScript does not like "partialize" in this case
TypeScript is saying
Seems it would like me to return whole state ? I did try to this as well
While this gives no errors, there is nothing in localstorage ? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Sep 27, 2022
Replies: 1 comment 2 replies
-
Here's the fix: https://tsplay.dev/N5LZ2w |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
martinaedma
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the fix: https://tsplay.dev/N5LZ2w
create<MyState>()(...)
will do.