Created
December 3, 2016 14:28
-
-
Save lmatteis/529df432548e3ed4c8777cc805a5a825 to your computer and use it in GitHub Desktop.
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
function main(sources) { | |
const request$ = sources.ACTION | |
.debug(action => console.log(action)) // This gets called when I return this stream as a sink to HTTP | |
.filter(action => action.type === ActionTypes.REQUESTED_USER_REPOS) | |
.map(action => action.payload.user) | |
.map(user => ({ | |
url: `https://api.github.com/users/${user}/repos`, | |
category: 'users' | |
})); | |
return { | |
// ACTION: xs.of({ type: 'foo' }), | |
HTTP: request$ | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment