File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ abstract class GlobalStore extends ChangeNotifier {
98
98
store = await future;
99
99
_perAccountStores[accountId] = store;
100
100
_perAccountStoresLoading.remove (accountId);
101
+ notifyListeners ();
101
102
return store;
102
103
}
103
104
Original file line number Diff line number Diff line change @@ -192,10 +192,8 @@ class _PerAccountStoreWidgetState extends State<PerAccountStoreWidget> {
192
192
if (store != null ) {
193
193
_setStore (store);
194
194
} else {
195
- // If we don't already have data, wait for it.
196
- (() async {
197
- _setStore (await globalStore.perAccount (widget.accountId));
198
- })();
195
+ // If we don't already have data, request it.
196
+ globalStore.perAccount (widget.accountId);
199
197
}
200
198
}
201
199
You can’t perform that action at this time.
0 commit comments