Youtube in React: wiring up Trending component with most popular videos next page token and allMostPopularVideosLoaded boolean
import { | |
allMostPopularVideosLoaded, | |
getMostPopularVideos, | |
getMostPopularVideosNextPageToken | |
} from '../../store/reducers/videos'; | |
/* ... */ | |
function mapStateToProps(state) { | |
return { | |
videos: getMostPopularVideos(state), | |
youtubeLibraryLoaded: getYoutubeLibraryLoaded(state), | |
allMostPopularVideosLoaded: allMostPopularVideosLoaded(state), | |
nextPageToken: getMostPopularVideosNextPageToken(state), | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment