Created
April 28, 2021 15:55
-
-
Save Chester97/39b491b3ab773eb0a5f14e7d4c85b3ef to your computer and use it in GitHub Desktop.
This file contains 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
scrollObservable.pipe( | |
mergeMap(value => { | |
const { currentPosition, maxPosition } = value; | |
console.log("VAL: ", value); | |
if(currentPosition >= maxPosition) { | |
return getPokemon$(10).pipe( | |
map(value2 => console.log("VAL2: ", value2)) | |
) | |
} | |
}) | |
).subscribe(data => console.log(data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment