Replies: 1 comment
-
Hey @Rokas91!, I'm a little late to the party, but this old unanswered question just popped on top of the conversations, so it may be worth providing an answer in any case someone stumbles upon it. var body: some ReducerProtocolOf<Self> {
EmptyReducer()
ifLet(\.todos, action: .self) {
// A ReducerProtocolOf<IdentifiedArrayOf<TodoState, AppAction>>
EmptyReducer()
.forEach(\.self, action: /AppAction.todos) { // the action is some `case todos(TodoState.ID, TodoAction)`
// A ReducerProtocolOf<TodoState, TodoAction>
TodoReducer()
}
}
} Something like this should probably work, but splitting the |
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.
-
How to migrate this example using ReducerProtocol API?
Beta Was this translation helpful? Give feedback.
All reactions