add selector for commet loading state
This commit is contained in:
parent
6c494eaf80
commit
d2079111b3
3 changed files with 9 additions and 1 deletions
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 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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue