Hello, I think that fragment B could be subscribed...
# android
j
Hello, I think that fragment B could be subscribed in some way to a local datasource. When you get server results, local datasource is updated and immediately fragment B is notified. I don't have experience with StateFlow but I guess that it can be used in a similar way to Behaviour subject of Rx java. In this way, fragment B is always showing the results of local datasource, even if you don't have connection. I hope it helps
🧵 4