Become a member
Sign in
Jay Pathania
Jay Pathania

Jay Pathania

26 Following
2 Followers
  • Profile

  • Claps

  • Highlights

Highlighted by Jay Pathania

See more

From View Model Creation in Android — Android Architecture Components & Kotlin by Felipe Magalhães

As previously mentioned, the ViewModel is scoped to an Activity or Fragment, and must live as long as the scope is still alive. Therefore, we must not instantiate it during the onCreate , for example, as it might get called multiple times in the same activity, and would cause the unnecessary recreation of the ViewModel, losing its data and states. This issue is solved by the Architecture Components with the ViewModelProviders , which does the job of keeping the ViewModel alive and paired with the scope:

From Jetpack Compose Primer by Siamak (Ash) Ashrafi

iOS SwiftUI, Android Jetpack Compose and Flutter are all declarative UI. We are moving from event driven UI to data driven UI.

Claps from Jay Pathania

See more

Kotlin singletons with argument

Christophe Beyls

Firestore Todos with “flutter_bloc”

Felix Angelov

Workout your tasks with WorkManager — Basics

Magda Miu