Closed msimar closed 6 years ago
good point, I have it for Activity but not for Fragment. I'll add that asap. Thanks!
In the meantime you can use ViewModelProviders.of(fragment)
instead of RetainedPresenters.get()
to pass in your presenter factory. RetainedPresenters
is really just a convenience wrapper on top of ViewModelProviders
.
Yeah, I noticed RetainedPresenters and already using ViewModelProviders.
Added for reference https://proandroiddev.com/viewmodel-with-dagger2-architecture-components-2e06f06c9455
Otherwise end up issues https://github.com/googlesamples/android-architecture-components/issues/207