Hi, I have a library with a fragment and viewmodel...
# android
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.
😶 3
which channel this question should go into ? @Ian Lake
Did you read the channel topic? This kotlinlang slack isn't for general Android questions so you'd want to use stackoverflow.com or another, more general purpose Android community
🆗 1