Nacho Ruiz Martin
02/09/2024, 11:25 AMAnchoredDraggable
? Can currentValue
be observed as State
?
I know there’s a callback in the constructor named confirmValueChange
but if I want to manipulate the state itself on that callback, things get messy.Stylianos Gakis
02/09/2024, 12:32 PMcurrentValue
a mutableState under the hood? If yes you can just do a snapshotFlow on itNacho Ruiz Martin
02/09/2024, 12:32 PMStylianos Gakis
02/09/2024, 12:32 PMStylianos Gakis
02/09/2024, 12:32 PMNacho Ruiz Martin
02/09/2024, 12:32 PMStylianos Gakis
02/09/2024, 12:33 PMNacho Ruiz Martin
02/09/2024, 12:34 PMjossiwolf
02/09/2024, 12:57 PMsnapshotFlow
(usually in a LaunchedEffect
) is the recommended wayNacho Ruiz Martin
02/09/2024, 12:57 PM