Skip to content

Commit f851239

Browse files
committed
refactor(entity_details): add comments to ad placeholder injection
- Clarify the purpose and functionality of ad placeholder injection in entity details - Explain that the method only injects stateless AdPlaceholder markers - Mention that full ad loading and lifecycle are managed by the UI layer - Provide reference to FeedDecoratorService for more detailed explanation
1 parent 986e167 commit f851239

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/entity_details/bloc/entity_details_bloc.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ class EntityDetailsBloc extends Bloc<EntityDetailsEvent, EntityDetailsState> {
114114
}
115115

116116
// For entity details, only inject ad placeholders.
117+
//
118+
// This method injects stateless `AdPlaceholder` markers into the feed.
119+
// The full ad loading and lifecycle is managed by the UI layer.
120+
// See `FeedDecoratorService` for a detailed explanation.
117121
final processedFeedItems =
118122
await _feedDecoratorService.injectAdPlaceholders(
119123
feedItems: headlineResponse.items,
@@ -217,6 +221,10 @@ class EntityDetailsBloc extends Bloc<EntityDetailsEvent, EntityDetailsState> {
217221
}
218222

219223
// For entity details pagination, only inject ad placeholders.
224+
//
225+
// This method injects stateless `AdPlaceholder` markers into the feed.
226+
// The full ad loading and lifecycle is managed by the UI layer.
227+
// See `FeedDecoratorService` for a detailed explanation.
220228
final newProcessedFeedItems =
221229
await _feedDecoratorService.injectAdPlaceholders(
222230
feedItems: headlineResponse.items,

0 commit comments

Comments
 (0)