88c5552352
if blockedList takes a while to return, the app would call claim_search once without the blocked list, then again with the block list. just hide them in the ui
19 lines
748 B
JavaScript
19 lines
748 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doClaimSearch, selectClaimSearchByQuery, selectFetchingClaimSearchByQuery, SETTINGS } from 'lbry-redux';
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import ClaimListDiscover from './view';
|
|
|
|
const select = (state) => ({
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
|
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
|
|
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
|
|
});
|
|
|
|
const perform = {
|
|
doClaimSearch,
|
|
doToggleTagFollowDesktop,
|
|
};
|
|
|
|
export default connect(select, perform)(ClaimListDiscover);
|