lbry-desktop/src/renderer/redux/actions/availability.js
2017-12-21 18:00:33 -03:00

28 lines
703 B
JavaScript

// eslint-disable-next-line import/prefer-default-export
export function doFetchAvailability() {
return function() {
/*
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,
// },
// });
// });
// }
};
}