Can mLocationsDataManager.getPointsOfInterests()
emit multiple items per subscription? If not a BehaviorSubject
should do the job. Otherwise you probably want to do some bufferring / merging rather than making UI render those historical results all at once as soon the map becomes ready. MutableLiveData
works really well for me in this type of situations. It’s like a BehaviorSubject
but lifecycle-aware😊