Kumar Gaurav
1 min readJun 8, 2020

--

Hi John,

You're correct, we can do that. If you see here, we have tried to solve two problems(boiler plate code & life cycle problems) by introducing ViewModel and LiveData. If we make presenter lifecycle aware by extending ViewModel, it will work perfectly fine though developers while reading the code later, "Presenter extends ViewModel" might look weird at first to them. Thoughts ?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Kumar Gaurav
Kumar Gaurav

Written by Kumar Gaurav

Senior Software Engineer @Walmart | Passionate about learning and sharing knowledge | https://github.com/kgaurav23

No responses yet

Write a response