<How do I listen to DataStore changes in ViewModel...
# stackoverflow
u
How do I listen to DataStore changes in ViewModel? So I am making an application, where if the user selects a different location, the query of the api should instantly change as well and should return new data? How can I implement flow observer inside the viewmodel? val cityName: String = settingsManager.cityName.first() val countryName: String = settingsManager.countryName.first() val response: Response = repo.getAdhanTime(cityName, countryName)