add selector for commet loading state
This commit is contained in:
parent
6c494eaf80
commit
d2079111b3
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -6821,6 +6821,8 @@ const selectState$7 = state => state.comments || {};
|
||||||
|
|
||||||
const selectCommentsById = reselect.createSelector(selectState$7, state => state.commentById || {});
|
const selectCommentsById = reselect.createSelector(selectState$7, state => state.commentById || {});
|
||||||
|
|
||||||
|
const selectIsFetchingComments = reselect.createSelector(selectState$7, state => state.isLoading);
|
||||||
|
|
||||||
const selectCommentsByClaimId = reselect.createSelector(selectState$7, selectCommentsById, (state, byId) => {
|
const selectCommentsByClaimId = reselect.createSelector(selectState$7, selectCommentsById, (state, byId) => {
|
||||||
const byClaimId = state.byId || {};
|
const byClaimId = state.byId || {};
|
||||||
const comments = {};
|
const comments = {};
|
||||||
|
@ -7130,6 +7132,7 @@ exports.selectFollowedTagsList = selectFollowedTagsList;
|
||||||
exports.selectGettingNewAddress = selectGettingNewAddress;
|
exports.selectGettingNewAddress = selectGettingNewAddress;
|
||||||
exports.selectHasTransactions = selectHasTransactions;
|
exports.selectHasTransactions = selectHasTransactions;
|
||||||
exports.selectIsFetchingClaimListMine = selectIsFetchingClaimListMine;
|
exports.selectIsFetchingClaimListMine = selectIsFetchingClaimListMine;
|
||||||
|
exports.selectIsFetchingComments = selectIsFetchingComments;
|
||||||
exports.selectIsFetchingFileList = selectIsFetchingFileList;
|
exports.selectIsFetchingFileList = selectIsFetchingFileList;
|
||||||
exports.selectIsFetchingFileListDownloadedOrPublished = selectIsFetchingFileListDownloadedOrPublished;
|
exports.selectIsFetchingFileListDownloadedOrPublished = selectIsFetchingFileListDownloadedOrPublished;
|
||||||
exports.selectIsFetchingMyPurchases = selectIsFetchingMyPurchases;
|
exports.selectIsFetchingMyPurchases = selectIsFetchingMyPurchases;
|
||||||
|
|
|
@ -254,7 +254,7 @@ export {
|
||||||
selectPurchaseUriSuccess,
|
selectPurchaseUriSuccess,
|
||||||
} from 'redux/selectors/claims';
|
} from 'redux/selectors/claims';
|
||||||
|
|
||||||
export { makeSelectCommentsForUri } from 'redux/selectors/comments';
|
export { makeSelectCommentsForUri, selectIsFetchingComments } from 'redux/selectors/comments';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
makeSelectFileInfoForUri,
|
makeSelectFileInfoForUri,
|
||||||
|
|
|
@ -8,6 +8,11 @@ export const selectCommentsById = createSelector(
|
||||||
state => state.commentById || {}
|
state => state.commentById || {}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
export const selectIsFetchingComments = createSelector(
|
||||||
|
selectState,
|
||||||
|
state => state.isLoading
|
||||||
|
);
|
||||||
|
|
||||||
export const selectCommentsByClaimId = createSelector(
|
export const selectCommentsByClaimId = createSelector(
|
||||||
selectState,
|
selectState,
|
||||||
selectCommentsById,
|
selectCommentsById,
|
||||||
|
|
Loading…
Reference in a new issue