Commit f159c03
committed
refactor(headlines_feed): remove dead code from feed page
Removes the unreachable `if` branches for `CallToActionItem` and `ContentCollectionItem` from the `itemBuilder` in `HeadlinesFeedPage`.
The rendering of these decorators is now fully encapsulated within the `FeedDecoratorLoaderWidget`, which is built when a `DecoratorPlaceholder` is encountered. This change cleans up the rendering logic and removes dead code. A `ValueKey` is also added to the `FeedDecoratorLoaderWidget` to ensure its state is managed correctly within the list.1 parent 8268dc2 commit f159c03
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | 318 | | |
325 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
326 | 326 | | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
0 commit comments