Replies: 2 comments
-
The issues you're encountering are all a little subtle, but here's what stands out:
With those changes I think you should be good to go! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Wow, it truly amazes me how fast and succinct your replies are–this is awesome. Thanks a lot! |
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.
-
I am trying to wrap my head around the new
Destination
pattern.My setup is as follows:
I already have everything together with separate
@PresentationState
s, but I wanted to refactor to the new embeddedDestination
pattern.I am clearly missing some reducer/integration of a child reducer or something, but I cannot seem to find out how I can fix it.
The compiler error message I am getting is
Cannot convert value of type '(AlertState<ItemListDomain.Action.Alert>) -> ItemListDomain.Destination.State' to expected argument type '(ItemListDomain.Destination.State) -> AlertState<PresentationAction<ItemListDomain.Action.Alert>>?'
.I extracted my problem to a sample project where I have a list of items, an add screen and where I would like to show an alert when trying to delete by swiping.
The part where it is failing is here:
What am I missing?
Here's the entire code:
Beta Was this translation helpful? Give feedback.
All reactions