26 lines
641 B
JavaScript
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,
|
|
// },
|
|
// });
|
|
// });
|
|
// }
|
|
};
|
|
}
|