Hello guys, I’m facing a strange issue. I have an animated visibilty block that is managed as usual with a boolean flag. I have one specific case with an unusual behavior. Sometimes when I set the flag to true, the composable is recomposed but the flag is false which is the initial value I assign to it at the beginning of the function. Any ideas?
a
Abhimanyu
10/21/2023, 8:23 AM
Is the flag a state and is it remembered?
y
Yariv Ziporin
10/21/2023, 9:05 AM
IMG_2072.jpg
Yariv Ziporin
10/23/2023, 10:28 AM
Hi, found it, It was because I'm using a third party module and I'm actually moving to another activity so I think "remember" wasn't enough. I changed it to rememberSaveable and so far so good..