Join Slack
Powered by
What would be the cause of this error? `Can't acce...
# koin
n
nwh
12/20/2018, 7:24 PM
What would be the cause of this error?
Can't access ViewModels from detached fragment
EDIT: I fixed it by using
by viewModel()
instead of
= getViewModel()
d
dknapp
12/20/2018, 7:38 PM
from a brief google search shows that you can’t load a viewmodel using a fragment that hasn’t called onAttach
508
Views
Open in Slack
Previous
Next