I am creating a news app to fetch the news from newsAPI.
I have to use StateFlow. Should I create a stateFlow object in repository interface implementation or View model ?? Do I have to make ViewModel collect it and pass on to view ? I am bit confused as to how the process should look like. Can anyone please help ?
not kotlin but kotlin colored 1
👍 1