Created
November 18, 2018 13:58
-
-
Save productioncoder/d687c935567901cd0219f6600d0dbf61 to your computer and use it in GitHub Desktop.
Youtube in React: selector that checks if more trending videos are available
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
export const allMostPopularVideosLoaded = createSelector( | |
[getMostPopular], | |
(mostPopular) => { | |
const amountFetchedItems = mostPopular.items ? mostPopular.items.length : 0; | |
return amountFetchedItems === mostPopular.totalResults; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment