Skip to content

Commit 9e176b1

Browse files
committed
refactor(bloc): rename state property for clarity
- Replace 'currentFeedItemCount' with 'processedContentItemCount' in multiple BLoC classes - Update property name in EntityDetailsBloc, HeadlinesFeedBloc, and HeadlinesSearchBloc - This change provides a more accurate description of the property's purpose
1 parent 5ca48a8 commit 9e176b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/entity_details/bloc/entity_details_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class EntityDetailsBloc extends Bloc<EntityDetailsEvent, EntityDetailsState> {
212212
feedItems: headlineResponse.items,
213213
user: currentUser,
214214
adConfig: remoteConfig.adConfig,
215-
currentFeedItemCount: state.feedItems.length,
215+
processedContentItemCount: state.feedItems.length,
216216
);
217217

218218
emit(

lib/headlines-feed/bloc/headlines_feed_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class HeadlinesFeedBloc extends Bloc<HeadlinesFeedEvent, HeadlinesFeedState> {
113113
feedItems: headlineResponse.items,
114114
user: currentUser,
115115
adConfig: remoteConfig.adConfig,
116-
currentFeedItemCount: state.feedItems.length,
116+
processedContentItemCount: state.feedItems.length,
117117
);
118118

119119
emit(

lib/headlines-search/bloc/headlines_search_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class HeadlinesSearchBloc
112112
feedItems: headlines,
113113
user: currentUser,
114114
adConfig: appConfig.adConfig,
115-
currentFeedItemCount: successState.items.length,
115+
processedContentItemCount: successState.items.length,
116116
);
117117
emit(
118118
successState.copyWith(

0 commit comments

Comments
 (0)