Unwrapping an optional presentation store leads to type mismatch. #3529
Replies: 2 comments
-
Hi @jessedoescode, the error is telling you the problem. The store you have constructed has the action To peel away that layer you can further chain on if let store = store.scope(state: \.presentEvent, action: \.presentEvent.presented) {
…
} |
Beta Was this translation helpful? Give feedback.
-
@mbrandonw Ahh. Yep, error message is super clear! Just hadn't come across the |
Beta Was this translation helpful? Give feedback.
-
Hi,
When modeling navigation with an enum:
That is held in the feature's state:
As well as action:
When trying to unwrap it with
if let
:I get a type mismatch due to the
PresentationAction
:Beta Was this translation helpful? Give feedback.
All reactions