https://kotlinlang.org logo
#compose
Title
# compose
m

Mehdi Haghgoo

09/26/2020, 5:41 AM
Do bad things happen every time we don't remember state? is
remember{}
always recommended when dealing with some state?
v

Vinay Gaba

09/26/2020, 5:55 AM
That would depend on whether your use case requires the state to be recomputed for every recomposition or you want it to hold the state across the recompositions.
m

Mehdi Haghgoo

09/26/2020, 5:56 AM
How often do recomposition happen?
a

Adam Powell

09/26/2020, 6:03 AM
Whenever compose feels like it, in terms of correctness. If you need a value to be the same across recompositions, remember it. 🙂
👍 1
😂 1
v

Vinay Gaba

09/26/2020, 6:05 AM