StackOverflow Questions for Tag: viewmodel

Ma'tufful Ikhsani
Ma'tufful Ikhsani

Reputation: 63

Multi page viewPager2 with paging 3 doesn't show data on page 2 using SharedViewModel

Score: 0

Views: 760

Answers: 1

Read More
AlTheBeast
AlTheBeast

Reputation: 33

Changes to my model/viewmodel are not charging what's on my view

Score: 0

Views: 105

Answers: 1

Read More
sadaf
sadaf

Reputation: 1

java.lang.RuntimeException: Cannot create an instance of class <package- name>viewmodel.LoginViewModel

Score: 0

Views: 32

Answers: 1

Read More
Hussein Chahine
Hussein Chahine

Reputation: 1

Viewmodel re initialization while its not cleared after navigating between screens

Score: 0

Views: 16

Answers: 0

Read More
Lokik Soni
Lokik Soni

Reputation: 702

Share MainActivity ViewModel between Compose Screens

Score: 1

Views: 1402

Answers: 2

Read More

How to let viewmodel initiate a background task

Score: 0

Views: 55

Answers: 1

Read More
Kahan Bhalani
Kahan Bhalani

Reputation: 303

Why ViewModel's StateFlow is not updating when inside a unit test and is mapped from a repository to UI state using stateIn?

Score: 0

Views: 90

Answers: 1

Read More
Sandervg03
Sandervg03

Reputation: 3

Can I use observerAsState() on a MutableLiveData?

Score: 0

Views: 30

Answers: 2

Read More
John Sourcer
John Sourcer

Reputation: 451

In MVVM is it acceptable to access the ViewModel in the view's code behind?

Score: 4

Views: 4417

Answers: 3

Read More
BArtWell
BArtWell

Reputation: 4054

How to load ViewModels in Kotlin Desktop?

Score: 0

Views: 2747

Answers: 1

Read More
Ramon Xavier
Ramon Xavier

Reputation: 23

multiple instances with compose and kotlin

Score: 2

Views: 196

Answers: 1

Read More
pawchi
pawchi

Reputation: 143

How to get the same ViewModel instance in Composable and Activity?

Score: 1

Views: 73

Answers: 1

Read More
user1034461
user1034461

Reputation:

(Java) Upgrading androidx.lifecycle:lifecycle-viewmodel

Score: 1

Views: 292

Answers: 1

Read More
Reza
Reza

Reputation: 875

Use sms retriever api in viewmodel

Score: 0

Views: 66

Answers: 1

Read More
Sheler
Sheler

Reputation: 3969

Cannot resolve symbol ViewModelProviders on AppCompatActivity

Score: 139

Views: 92269

Answers: 15

Read More
GVG
GVG

Reputation: 609

How do I create an instance of a view model with input parameters

Score: 0

Views: 30

Answers: 1

Read More
au2o
au2o

Reputation: 3

TextField not updating until another TextField is updated

Score: 0

Views: 148

Answers: 1

Read More
Sundaram Pandey
Sundaram Pandey

Reputation: 21

How to Handle Nested Square Roots and Expressions in a Scientific Calculator App?

Score: 1

Views: 48

Answers: 0

Read More

Trouble Updating RecyclerView with Data from Foreground Location Service in Kotlin

Score: 0

Views: 46

Answers: 1

Read More
Deep Bajud
Deep Bajud

Reputation: 1

How can I efficiently manage multiple 'LiveData' sources in a 'ViewModel'?

Score: 0

Views: 22

Answers: 0

Read More
PreviousPage 4Next