python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Compose - NavHost recomposition multiple times
During navigation from Navhost, I found out that the composable screens are getting recomposition multiple times. Because of it, my ViewModel is calling API data source multiple times too.
@Composable...
LMaker
Votes: 0
Answers: 2
Why Compose remembers a state of an object rather than the object itself?
I learned that Compose remembers a state in a way such as:
var text by remember { mutableStateOf("") }
So in this case, it remembers a MutableState of a String. My question is why it wants...
LXJ
Votes: 0
Answers: 3
Can't make Jetpack Compose to recompose
I constructed a lazycolumn where on every row I set pointer listeners. What I want is that after long click on any row, the following clicks will be in selection mode and change the background color ...
LXJ
Votes: 0
Answers: 1
Jetpack recomposition behavior
When state changes recomposition should fire. In code sample one state changes but recomposition doesn't fire but in code sample two state changes onButtonClick and recomposition fires.
How to make co...
Rahul
Votes: 0
Answers: 1