openweathermap icon indicating copy to clipboard operation
openweathermap copied to clipboard

Unique source of truth, implementing a centralised repository

Open lucasmontano opened this issue 4 years ago • 0 comments

Right now we have the following data flow:

Screen Shot 2020-04-12 at 14 56 31

Suggestion: The repository should be the unique source of truth, meaning: data should not flow directly from the network layer to the viewmodel. Viewmodel should observe changes in the repository.

Screen Shot 2020-04-12 at 14 58 59

lucasmontano avatar Apr 12 '20 13:04 lucasmontano