This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is no requirement that you make a one-to-one in/out ratio. So you can emit multiple actions using flatMap if you need to: | |
const loaded = (results) => ({type: 'RESULTS_LOADED', results}); | |
const otherAction = (results) => ({type: 'MY_OTHER_ACTION', results}); | |
searchEpic = (action$) => | |
action$ | |
.ofType('SEARCH') | |
.mergeMap( | |
Observable |