Created
November 18, 2018 13:54
-
-
Save productioncoder/a3f79a2e3f4034f24e421d515bc2864a to your computer and use it in GitHub Desktop.
Youtube in React: selector for next page token for most popular videos
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
const getMostPopular = (state) => state.videos.mostPopular; | |
export const getMostPopularVideosNextPageToken = createSelector( | |
getMostPopular, | |
(mostPopular) => { | |
return mostPopular.nextPageToken; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment