lbry-desktop/ui/redux/actions/availability.js
2019-11-11 13:27:29 -05:00

26 lines
641 B
JavaScript

export function doFetchAvailability() {
return () => {
/*
this is disabled atm - Jeremy
*/
// const state = getState();
// const alreadyFetching = !!selectFetchingAvailability(state)[uri];
//
// if (!alreadyFetching) {
// dispatch({
// type: ACTIONS.FETCH_AVAILABILITY_STARTED,
// data: { uri },
// });
//
// lbry.get_availability({ uri }).then(availability => {
// dispatch({
// type: ACTIONS.FETCH_AVAILABILITY_COMPLETED,
// data: {
// availability,
// uri,
// },
// });
// });
// }
};
}