StackOverflow Questions for Tag: android-viewmodel

Jaydip Kalkani
Jaydip Kalkani

Reputation: 2607

Failed to resolve: androidx.lifecycle:lifecycle-extensions-ktx:2.0.0-alpha1

Score: 24

Views: 75074

Answers: 7

Read More
devtheory3
devtheory3

Reputation: 108

Observe StateFlow emission in ViewModel initialization

Score: 6

Views: 2886

Answers: 2

Read More
ntos
ntos

Reputation: 319

How do I create a ViewModel with a SavedStateHandle and another argument?

Score: 4

Views: 3360

Answers: 1

Read More
tronman
tronman

Reputation: 10125

Collecting Flows in the ViewModel

Score: 1

Views: 4587

Answers: 1

Read More
rdias002
rdias002

Reputation: 234

How to create different viewmodel instance for fragments in viewpager scoped to parent fragment with Hilt

Score: 0

Views: 58

Answers: 1

Read More
forvas
forvas

Reputation: 10189

How can I make the parameters of a uiState persist when turning the screen in Kotlin?

Score: 1

Views: 70

Answers: 1

Read More
Morozov
Morozov

Reputation: 5260

Method in Kotlin Multiplatform ViewModel is not being called from Compose screen

Score: 1

Views: 427

Answers: 3

Read More
lucasg638
lucasg638

Reputation: 31

Recomposition not working as i expect, image not displaying

Score: 1

Views: 27

Answers: 1

Read More
Tyler Allen
Tyler Allen

Reputation: 1

Passing object through navigation in Jetpack Compose

Score: 0

Views: 101

Answers: 0

Read More
Markus
Markus

Reputation: 1777

Jetpack navigation: How to update ViewModel on dialog close?

Score: 0

Views: 64

Answers: 0

Read More
Aditya Anand
Aditya Anand

Reputation: 93

How to initialize multiple parameters in a view model for Jetpack Compose the right way?

Score: 4

Views: 57

Answers: 1

Read More
Pawandeep Singh
Pawandeep Singh

Reputation: 269

Jetpack Compose: Should I pass ViewModel down the component tree or use callbacks?

Score: 4

Views: 150

Answers: 2

Read More
Martin
Martin

Reputation: 2914

Global ViewModel in Jetpack Compose

Score: 0

Views: 192

Answers: 2

Read More
noize
noize

Reputation: 1

How do I fetch and prepare data before displaying a composable?

Score: 0

Views: 121

Answers: 1

Read More
RaJ
RaJ

Reputation: 1243

viewModels not found in jetpack compose

Score: 2

Views: 434

Answers: 1

Read More
Fivos
Fivos

Reputation: 568

Observe values of mutableStateOf property - Android ViewModel Unit Testing

Score: 0

Views: 46

Answers: 0

Read More
Samuel Marks
Samuel Marks

Reputation: 1884

viewModel on Kotlin Multiplatform?

Score: 1

Views: 182

Answers: 3

Read More
JustSightseeing
JustSightseeing

Reputation: 3025

by lazy {} causing a cast exception in production / hashmap loosing values after assigning

Score: 1

Views: 78

Answers: 1

Read More
Pierre Vieira
Pierre Vieira

Reputation: 3338

How to get preview in composable functions that depend on a view model?

Score: 15

Views: 9198

Answers: 4

Read More
Pawandeep Singh
Pawandeep Singh

Reputation: 269

How to cache room data in View Model?

Score: 0

Views: 78

Answers: 1

Read More
PreviousPage 2Next