<StackOverflowError on ViewModel initialization> I...
# stackoverflow
u
StackOverflowError on ViewModel initialization I met with strange problem during my ViewModel class initialization. I suppose that code is the best way to explain problem. My all ViewModels are inherit after this: abstract class BaseViewModel : ViewModel() { internal var args: Bundle? = null } I have delegate to provide ViewModel to fragment, which automaticaly load arguments from fragment. interface ViewModelFactoryProvider : ReadOnlyProperty { val viewModelFactory: ViewModelProvider.Factory override fun getValue(thisRef:...