Remove (revert) reaction-fetch hardstop

Root-cause is known, so removing it to detect other issues.
This commit is contained in:
infinite-persistence 2021-07-20 11:14:56 +08:00
parent 4bf7c68574
commit c71e4718d0
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -76,8 +76,6 @@ function CommentList(props: Props) {
const [page, setPage] = React.useState(0);
const totalFetchedComments = allCommentIds ? allCommentIds.length : 0;
const [reactionFetchCount, setReactionFetchCount] = React.useState(0);
// Display comments immediately if not fetching reactions
// If not, wait to show comments until reactions are fetched
const [readyToDisplayComments, setReadyToDisplayComments] = React.useState(
@ -138,9 +136,7 @@ function CommentList(props: Props) {
});
}
if (idsForReactionFetch.length !== 0 && reactionFetchCount < 500) {
setReactionFetchCount(reactionFetchCount + 1);
if (idsForReactionFetch.length !== 0) {
fetchReacts(idsForReactionFetch)
.then(() => {
setReadyToDisplayComments(true);
@ -158,8 +154,6 @@ function CommentList(props: Props) {
activeChannelId,
fetchingChannels,
isFetchingReacts,
reactionFetchCount,
setReactionFetchCount,
]);
// Scroll to linked-comment