How can I make some kind of "diff" between previous and current state? I would like for example, when the state changed, to clear a TextField and give it focus.
t
Tgo1014
06/29/2023, 9:25 AM
LaunchedEffect
using the object you want to observe the changes as the
key
?
z
Zach Klippenstein (he/him) [MOD]
06/29/2023, 5:55 PM
Recomposition is unnecessary just to do the diff. You can use snapshotFlow and scan