but only the first fragment (first tab of the viewpager) receives the
_myStateFlow.value = Status.Success(data)
a
Abhinav Bhadauria
11/05/2021, 9:57 AM
Where you are making your viewmodel instance, can you show that line??
Abhinav Bhadauria
11/05/2021, 10:02 AM
Okay right you have written repeatonlifecycle in onstarted state, in viewpager there is a offset option which is 1 by default so adjacent fragment , onstart will not be called that's why it is not collecting, don't use that just collect or use onresume instead