mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Add lots of listen: false when using Provider
Provider version 4 has an assert which fires if used incorrectly.
This commit is contained in:
@ -468,7 +468,7 @@ class GitHostSetupScreenState extends State<GitHostSetupScreen> {
|
||||
gitCloneErrorMessage = "";
|
||||
});
|
||||
|
||||
var stateContainer = Provider.of<StateContainer>(context);
|
||||
var stateContainer = Provider.of<StateContainer>(context, listen: false);
|
||||
var basePath = stateContainer.appState.gitBaseDirectory;
|
||||
|
||||
// Just in case it was half cloned because of an error
|
||||
|
Reference in New Issue
Block a user