Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: next page token selector
const getComment = (state, location) => {
const videoId = getSearchParam(location, 'v');
return state.comments.byVideo[videoId];
export const getCommentNextPageToken = createSelector(
(comment) => {
return comment ? comment.nextPageToken : null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.