I have almost the exact same problem as Calamity has. Yes, I have also seen the solution mentioned by google in their app architecture page (mentioned by Vince).
But it won't work for me, as I have multiple APIs calls that update the list of objects that I have in the local cache.
So I need to have a flow object that updates whenever any other API is called: it will update the local cache and then update the flow object. But as the repository returns a List<X>, not a Flow<List<X>, this won't work...
I think I have to try some cold flow approach for this, any ideas?