We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, we have two global variables in the dart code: gobalAppStore and webApi
gobalAppStore
webApi
I don't like this approach, as such code is not well testable. Instead, we should use the provider pattern.
provider
An elaboration on this topic is found in: global vs scoped access
I already made that transition in another (less complex) app, there it took me 4 hours to make it, work.
Our two globals are:
globalAppStore
The text was updated successfully, but these errors were encountered:
agree that this approach is superior
Sorry, something went wrong.
No branches or pull requests
Currently, we have two global variables in the dart code:
gobalAppStore
andwebApi
I don't like this approach, as such code is not well testable.
Instead, we should use the
provider
pattern.An elaboration on this topic is found in: global vs scoped access
I already made that transition in another (less complex) app, there it took me 4 hours to make it, work.
Our two globals are:
globalAppStore
RemoveglobalAppStore
and add provider pattern for it #733webApi
The text was updated successfully, but these errors were encountered: