Hi,
I have a library with a fragment and viewmodel and using that fragment in my app and created view model using
ViewModelProviders.of(fragmentId).get(ViewModelName::class.name)
I decided to remove ViewModelProviders but now when i use
ViewModelProvider class, I am not able to pass on the fragment and also if i create view model using ViewModelProvider then there is no communication between ViewModel and Fragment exist in the library.
Please let me know how this can be resolved using ViewModelProvider.