Replies: 1 comment 2 replies
-
Finally managed to achieve the desired behaviour: Scope(state: \.content, action: .self) {
EmptyReducer()
.ifCaseLet(/State.Content.trips, action: /Action.trip(id:action:)) {
EmptyReducer()
.forEach(\.self, action: /.self) {
TripListItem()
}
}
} Is it any chance to improve the following code? 🤔 |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
How to properly add a child reducer when a child's state is located in one of an enum case?
Beta Was this translation helpful? Give feedback.
All reactions