Skip to content

Commit

Permalink
[gui] make info providers update even if data is equal
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-toterman committed Oct 23, 2024
1 parent abe0391 commit d1ee7e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/client/gui/lib/providers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ final vmInfosProvider = Provider((ref) {
return !existingVmNames.contains(info.name);
});

return existingVms.concat(launchingVms).sortedBy((i) => i.name).toBuiltList();
return existingVms.concat(launchingVms).sortedBy((i) => i.name).toList();
});

final vmInfosMapProvider = Provider((ref) {
return {for (final i in ref.watch(vmInfosProvider)) i.name: i}.build();
return {for (final i in ref.watch(vmInfosProvider)) i.name: i};
});

class VmInfoNotifier
Expand All @@ -106,7 +106,6 @@ final vmInfoProvider = NotifierProvider.autoDispose
final vmStatusesProvider = Provider((ref) {
return ref
.watch(vmInfosMapProvider)
.asMap()
.mapValue((info) => info.instanceStatus.status)
.build();
});
Expand Down

0 comments on commit d1ee7e6

Please sign in to comment.