Best practice to set provider state #3394
Unanswered
jersonal-com
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to manage the language of the web app by using a provider.
The language settings should be determined by two sources:
/two?lang=en
the language should be set to enI somehow cobbled together a working version that encapsulates the changes to the state in a
Future()
. This is clearly not a good practice and also causes some unexpected behavior such as loading the page several times.I would appreciate any advice on how to change the provider state for the two cases in a better way.
Best regards
Oliver
Beta Was this translation helpful? Give feedback.
All reactions