chore: check if mounted before setting state in async function (#2194)

pull/1817/head
ggurdin 8 months ago committed by GitHub
parent 269af9f4e6
commit c47c5cb2df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -88,9 +88,7 @@ class ActivityListViewState extends State<ActivityListView> {
}, },
); );
} finally { } finally {
setState(() { if (mounted) setState(() => _isLoading = false);
_isLoading = false;
});
} }
} }

Loading…
Cancel
Save