UiStatePlayground
UiStatePlayground copied to clipboard
Network as source of truth
First of all, thank you for this is an excellent article and sample!
I have a simple question. What if we didn't have a DB and the source of truth was the network? How would you approach this scenario?
Would you emit as a flow the result of the Api calls in the repository in order to not refactor the logic/states in the viewmodel? Or any other idea?
Hi @gs-ts . Have you figured out the best way to handle that?