lbry-desktop/ui/page/watchHistory/index.js
infinite-persistence a2099482b0 Batch-resolve Watch History
## Issue
Doing individual resolves, even on a small list, is taxing.

## Change
Add infinite scroll and batch-resolve each page.
2022-05-16 07:57:24 -04:00

17 lines
530 B
JavaScript

import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import WatchHistoryPage from './view';
import { selectWatchHistoryUris } from 'redux/selectors/content';
import { doClearContentHistoryAll } from 'redux/actions/content';
import { doResolveUris } from 'redux/actions/claims';
const select = (state) => ({
historyUris: selectWatchHistoryUris(state),
});
const perform = {
doClearContentHistoryAll,
doResolveUris,
};
export default withRouter(connect(select, perform)(WatchHistoryPage));