Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
action$.ofType(LOGIN_REQUEST) | |
.switchMap(() => | |
Observable.ajax.post( | |
'http://www.endpoint.com', | |
{ | |
username: 'user', | |
password: 'password' | |
}) | |
// Note the different operator here | |
.flatMap(payload => |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/