https://kotlinlang.org logo
#android
Title
# android
s

Slackbot

04/14/2021, 8:03 AM
This message was deleted.
e

Ernestas

04/14/2021, 8:27 AM
Not sure what’s the issue here, you just call the function as with any other objects. What exactly doesn’t work? How do you create your ViewModel?
a

Asim Khatri

04/14/2021, 8:54 AM
what do you mean by it doesn't work? are you getting any error/exception?
since you are observing
model.competitions
in your Fragment, is there any code that changes it? hence causing your code to run.