Commit 04f260e
committed
refactor(feed_decorators): simplify content collection follow logic
Refactors `ContentCollectionDecoratorWidget` to correctly delegate the `onFollowToggle` action to its parent widget.
The widget was incorrectly re-implementing the follow/unfollow logic inline, ignoring the `onFollowToggle` callback passed to its constructor. This change removes the redundant logic and correctly calls `widget.onFollowToggle`, restoring the intended separation of concerns where the parent (`FeedDecoratorLoaderWidget`) is responsible for handling the action.1 parent 345e298 commit 04f260e
File tree
1 file changed
+1
-45
lines changed- lib/feed_decorators/widgets
1 file changed
+1
-45
lines changedLines changed: 1 addition & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 165 | + | |
210 | 166 | | |
211 | 167 | | |
212 | 168 | | |
| |||
0 commit comments