add selector for commet loading state

This commit is contained in:
Sean Yesmunt 2020-05-25 14:00:22 -04:00
parent 6c494eaf80
commit d2079111b3
3 changed files with 9 additions and 1 deletions

3
dist/bundle.es.js vendored
View file

@ -6821,6 +6821,8 @@ const selectState$7 = state => state.comments || {};
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 byClaimId = state.byId || {};
const comments = {};
@ -7130,6 +7132,7 @@ exports.selectFollowedTagsList = selectFollowedTagsList;
exports.selectGettingNewAddress = selectGettingNewAddress;
exports.selectHasTransactions = selectHasTransactions;
exports.selectIsFetchingClaimListMine = selectIsFetchingClaimListMine;
exports.selectIsFetchingComments = selectIsFetchingComments;
exports.selectIsFetchingFileList = selectIsFetchingFileList;
exports.selectIsFetchingFileListDownloadedOrPublished = selectIsFetchingFileListDownloadedOrPublished;
exports.selectIsFetchingMyPurchases = selectIsFetchingMyPurchases;

View file

@ -254,7 +254,7 @@ export {
selectPurchaseUriSuccess,
} from 'redux/selectors/claims';
export { makeSelectCommentsForUri } from 'redux/selectors/comments';
export { makeSelectCommentsForUri, selectIsFetchingComments } from 'redux/selectors/comments';
export {
makeSelectFileInfoForUri,

View file

@ -8,6 +8,11 @@ export const selectCommentsById = createSelector(
state => state.commentById || {}
);
export const selectIsFetchingComments = createSelector(
selectState,
state => state.isLoading
);
export const selectCommentsByClaimId = createSelector(
selectState,
selectCommentsById,