Do not call setState if unmounted

Fixes APP-GV
This commit is contained in:
Vishesh Handa
2020-11-10 00:40:21 +01:00
parent 57c1911df9
commit 420de6ee4c

View File

@ -63,6 +63,7 @@ class _GraphViewState extends State<GraphView> {
super.initState();
widget.graph.addListener(() {
if (!mounted) return;
setState(() {});
});