"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "29ce9feb65d377ea24cb0d3aabc63b090e56c152"
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