-
Hello, I want to set the cartItems with the type but I don't know how to do it with combine. I am using this way to set the type: Is there any other way to set it? Full code:
|
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Oct 30, 2020
Replies: 1 comment 1 reply
-
I suppose You could do |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kaisiant
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suppose
as Product[]
is fine.You could do
combine<PrimaryState, SecondaryState>()
, but then there's less reasoning to use combine. https://codesandbox.io/s/busy-dewdney-felo9?file=/src/App.tsx