<https://stackoverflow.com/questions/61660857/pass...
# android
j
Is the intention to have a shared view model used by the various fragments?
v
Well as of now I am only sharing it with the two fragments may be in future i might share it with multiple fragments
j
I'm used to using Koin's
sharedViewModel
but if using
ViewModelProvider
then I believe you need to pass in activity instance ....using https://developer.android.com/reference/android/arch/lifecycle/ViewModelProviders#of(android.support.v4.app.FragmentActivity)
💯 1