Do bad things happen every time we don't remember ...
# compose
m
Do bad things happen every time we don't remember state? is
remember{}
always recommended when dealing with some state?
v
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
How often do recomposition happen?
a
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