People like to complain about clean arch..... but honestly it makes the most sense if you always only display data from your db. I like to immediately store api data I need in the db, and have my viewmodels listen for db changes and re-actively update the ui state.
If you work that way your db naturally has it's own representation of the api data that may or may not map one to one with the api. You basically end up implementing most of clean arch without thinking about it.
View all comments
Show parent comment
1
u/slightly_salty Nov 26 '25
People like to complain about clean arch..... but honestly it makes the most sense if you always only display data from your db. I like to immediately store api data I need in the db, and have my viewmodels listen for db changes and re-actively update the ui state.
If you work that way your db naturally has it's own representation of the api data that may or may not map one to one with the api. You basically end up implementing most of clean arch without thinking about it.