This message was deleted.
# android
s
This message was deleted.
e
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
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.