Hello! I’ve just started using Android Architect Components and I did not understand one thing…
Denis Iuferov
12

Yep, if you use ViewModel as a Presenter, you need a reference to the view. You’re using a presenter that survives rotation though, so you must be careful.

When I use MVP I don’t persist the presenters. They’re recreated after rotation. If you know what you’re doing (and LeakCanary helps too) then you’re fine.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.