How to keep data stores values in memory for use. ...
# android
r
How to keep data stores values in memory for use. Currently I'm having data store values as StateFlow in GlobalScope and then using the values for the api by providing them in lambda
Copy code
ktoClient(someHeaderValue: ()->String)= HttpClient{
  ...
  defaultConfig{
    header("headerKey", someHeaderValue())
  }
}