fixed: overriding currentHomes
Description
This MR fix a regression of homepage refactoring.
Screenshots
Technical details
HomeViewModel maintains state of homepage data with a list (currentHomes: List). This list is updated when any new data is fetched. And Homeresult.data
comes from data layer which is a mutable list that can be changed anytime. That's why we're setting a copy of the list to currentHomes
, so that currentHomes
isn't changed when homeresult.data
is changed.
Tests
Issues
10 commandments of code reviews
Closes #228