Zach
12/05/2022, 11:04 PMpopBackStack
on a screen with a text field. For some reason on back press, either via the nav bar back button or an onscreen back button calling popBackStack
, the screen kind of just flashes and then the keyboard flashes, but it doesn’t go to the previous composable. If I spam the back button, it does eventually return to the previous screen. How do I get around this and have just 1 press of back button go to the previous screen without using navigate()
?mattinger
12/05/2022, 11:13 PMZach
12/05/2022, 11:24 PMZach
12/05/2022, 11:27 PMLaunchedEffect
I was consuming my navigation state from, so I changed that to a DisposableEffect
and reset the state inside onDispose
mattinger
12/06/2022, 6:40 PM