lbry-desktop/ui/redux/actions/availability.js

27 lines
641 B
JavaScript
Raw Normal View History

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,
// },
// });
// });
// }
2017-06-06 23:19:12 +02:00
};
2017-06-06 06:21:55 +02:00
}