article banner

Exercise: NewsViewModel using stateIn

Exercise NewsViewModel can be solved more easily using the stateIn function. Change its implementation now. Compare both solutions. Which one do you prefer? What are adventages and disadvantages of each solution?

Once you are done with the exercise, you can check your solution here.