Hello there, my team is facing a strange issue whe...
# moko
s
Hello there, my team is facing a strange issue when trying to use moko-mvvm, moko-livedata components. We have some code in viewmodel inside viewmodelScope.launch { .. }. Invoking this method (on a button click or something) works for the first time. However, when we repeat the same action, the code inside viewmodelScope.launch doesn't work anymore. @alex009 Can you please help?
a
hi. we have not encountered this type of problems. maybe someone call
cancel
for
viewModelScope
?
s
Thanks for getting back. They have identified the root cause where viewmodelScope is getting cleared during to a fragment change. Good for now!