wrap isLoading = false in a mounted check and setState call
This commit is contained in:
@@ -105,7 +105,11 @@ class _GroupsViewState extends State<GroupsView> {
|
|||||||
groups = loadedGroups
|
groups = loadedGroups
|
||||||
..sort((a, b) => b.createdAt.compareTo(a.createdAt));
|
..sort((a, b) => b.createdAt.compareTo(a.createdAt));
|
||||||
});
|
});
|
||||||
isLoading = false;
|
if (mounted) {
|
||||||
|
setState(() {
|
||||||
|
isLoading = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user