Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: search for videos worker saga
import * as api from '../api/youtube-api';
import {fetchEntity} from './index';
export function* searchForVideos(searchQuery, nextPageToken, amount) {
const request = api.buildSearchRequest.bind(null, searchQuery, nextPageToken, amount);
yield fetchEntity(request, searchActions.forVideos, searchQuery);
}
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.