-
Trying to do something like import create from "zustand";
const useStore = create<string | undefined>(undefined); results in a TS Is this a deliberate constraint, i.e. Zustand doesn't support transitioning a state to certain primitives? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Nov 17, 2021
Replies: 1 comment
-
Yes, it has to be an object. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tpict
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it has to be an object.