Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/src/features/feed/presentation/bloc/feed_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ class FeedBloc extends Bloc<FeedEvent, FeedState> {
}

// If the feed is already being fetched but it is not a reset, then just wait
if (state.status == FeedStatus.fetching) return;
// If the cursor is null, then we are at the end of the feed so we don't need to fetch any more
if (state.status == FeedStatus.fetching || state.cursor == null) return;

// Handle fetching the next page of the feed
emit(state.copyWith(status: FeedStatus.fetching));
Expand Down