Can a single observable flux be split into multiple other observables?
For example, I have a form that users can submit. The submit action is captured by an observable, and a validator is triggered upon submission.
submitAction.forEach(validate)
However, I would like to associate actions with either the success
or failure
outcomes of the validation process.
validationFailure.forEach(outputErrors)
validationSuccess.forEach(goToPage)
I'm unsure about the best approach for handling similar scenarios in reactive programming - it's possible that splitting the observable might not be the most suitable solution.
How would you address a comparable situation?