79591283

Date: 2025-04-24 18:51:06
Score: 4.5
Natty: 5
Report link

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?

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): any ideas
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: jubarim