Skip to content

Commit

Permalink
Fixing session and profile dependent providers initialization (#1365)
Browse files Browse the repository at this point in the history
  • Loading branch information
limwa authored Oct 19, 2024
2 parents 543d0fc + 4be63c1 commit b6a9273
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ abstract class StateProviderNotifier<T> extends ChangeNotifier {
if (!context.mounted || _state != null) {
return;
}
await _loadFromStorage(context).then((value) {
await _loadFromStorage(context).then((value) async {
if (context.mounted) {
_loadFromRemoteFromContext(context);
await _loadFromRemoteFromContext(context);
}
});
},
Expand Down

0 comments on commit b6a9273

Please sign in to comment.