mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 10:17:16 +08:00
Do not call setState if unmounted
Fixes APP-GV
This commit is contained in:
@ -63,6 +63,7 @@ class _GraphViewState extends State<GraphView> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
widget.graph.addListener(() {
|
widget.graph.addListener(() {
|
||||||
|
if (!mounted) return;
|
||||||
setState(() {});
|
setState(() {});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user