[Question] Issue with zustand-slices types using no store actions #2804
Replies: 2 comments
-
Can you create a reproduction with typescript playground? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I spent a while trying to recreate it and couldn't. Then I deleted / reinstalled node_modules and deleted my previous store and everything seems to be working. Not sure why migrating broke things but everything seems to be working now! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have several slices that have objects as values. I am getting the error:
Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{ selectedCharacter: string | null; characters: { [characterId: string]: Character; }; locationCharacterIndex: { [locationId: string]: Set<string>; }; }'.
On the
state.characters[characterId];
in this slice/action:And the relevant excerpt from the character slice:
Beta Was this translation helpful? Give feedback.
All reactions