Hi everyone! My userModel variable defined in my U...
# android
e
Hi everyone! My userModel variable defined in my UserViewModel class looks like this: val userModel = MutableLiveData<UserModel>() After defining the viewmodel class in a fragment, I set this variable and close the fragment and open another activity page. In this newly opened activity page, I define an object from the same viewmodel class and get() the viewModel.userModel variable, but it returns null. I haven't been able to find the cause despite searching a lot. Please help me.
not kotlin but kotlin colored 3