How to obtain the Child.State
from the Destination.State
property?
#2314
Unanswered
idelfonsog2
asked this question in
Q&A
Replies: 2 comments
-
Does this work: if case let .some(.one(oneState)) = state.destination ? I would expect optional promotion to just work, but maybe it needs some help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
maybe you can tried using CasePath like this:
and on the reduce func you can use it like this
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
if I have the following:
how can I case unwrap the
OneFeature.State
in my ParentFeature reducer?I have been trying:
but the error keeps stating
Enum case 'one' is not a member of type 'ParentFeature.Destination.State?'
Beta Was this translation helpful? Give feedback.
All reactions