Skip to content

Commit 24b830f

Browse files
committed
refactor(account): refresh sources on follow change
- Refresh sources after follow
1 parent efa5e73 commit 24b830f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/account/view/add_source_to_follow_page.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ class AddSourceToFollowPage extends StatelessWidget {
4848
}
4949

5050
return BlocBuilder<AccountBloc, AccountState>(
51+
buildWhen: (previous, current) =>
52+
previous.preferences?.followedSources != current.preferences?.followedSources ||
53+
previous.status != current.status,
5154
builder: (context, accountState) {
5255
final followedSources =
5356
accountState.preferences?.followedSources ?? [];

0 commit comments

Comments
 (0)