We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf44d4c commit c94effbCopy full SHA for c94effb
lib/account/view/add_category_to_follow_page.dart
@@ -56,6 +56,9 @@ class AddCategoryToFollowPage extends StatelessWidget {
56
57
// Use AccountBloc to check which categories are already followed
58
return BlocBuilder<AccountBloc, AccountState>(
59
+ buildWhen: (previous, current) =>
60
+ previous.preferences?.followedCategories != current.preferences?.followedCategories ||
61
+ previous.status != current.status, // Rebuild if status changes too
62
builder: (context, accountState) {
63
final followedCategories =
64
accountState.preferences?.followedCategories ?? [];
0 commit comments