Replies: 1 comment 2 replies
-
The problem with the line case .showSettings(.delegate(.clearListInMemory)): is that the case showSettings(PresentationAction<SettingsDomain.Action>) So, I think your handler case needs to be: case .showSettings(.presented(.delegate(.clearListInMemory))): If you think about it, it makes sense because you only want to respond to that action when the child is presented. I haven't tried the code above so I can't be 100% sure that it will work but I think what I wrote above is correct. |
Beta Was this translation helpful? Give feedback.
2 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 on
I have a simple list of items in one screen and a settings screen. What I want to accomplish is
I think I learnt in https://www.pointfree.co/collections/composable-architecture/navigation/ep222-composable-navigation-tabs, that such things are done with delegates.
I have implemented such a delegate and a delegate action in the settings screen, but right now, I am failing to listen to this delegate from the parent.
Specifically, I am getting the following errors in the item list reducer:
What am I missing?
Here's the code:
Beta Was this translation helpful? Give feedback.
All reactions