Current Tutorial on Combining Reducers #2055
Senbazuru1075
started this conversation in
General
Replies: 1 comment
-
@Senbazuru1075 Your var body: some ReducerProtocol<State, Action> {
Reduce(self.core)
Scope(state: \.stateOfOnboarding, action: /Action.changeToSignUp) {
Onboarding()
}
} |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm new to functional programming and am having trouble combining reducers. I am using pointfree for a project. I'm trying to combine to reducers. Essentially when the onboarding complete button is pressed the startup view store holding that domain should set state to switch to a destination view such as signup.
However, I am receiving a build expression error requiring Onboarding.State and AppStartup.State to be equivalent as well as their actions.
I'm not sure how to solve this error. I looked in the discussion for solutions. It looks like an EmptyReducer is necessary. I am a beginner so I'd like some help.
Here is the code:
Beta Was this translation helpful? Give feedback.
All reactions