Flow doesn't trigger in other class
I have firebaseManager where I have my readData function which is used in another fragment, I would like to achieve this goal when the firebasemanager is done I trigger function in homefragment and refresh UI to display data.
fragment
class HomeFragment : Fragment() {
var _setGoalsData = MutableStateFlow(0)
val setGoalsData = _setGoalsData.asStateFlow()
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view,...