# compose

Rafael Costa

03/28/2022, 12:51 PM
Are modal screens (dialogs or bottom sheet from accompanist) expected to not stay in the back stack after navigating away from them? I've had issues opened on my library about this and I'm not sure if this is expected. At the moment they are not kept unless we navigate to another modal screen. So is this intended or should I open an issue?


03/28/2022, 12:58 PM
I dont know :p i have never needed a persistent bottom sheet, but i would say, as the name implies, should appear on back if previously opened. I am only using modal bottom sheet, and they go away if you navigate to another screen. Also, i am not persisting them (which is debatable). So for instance on process death it wont appear. Which is fine in my cases. Confirmation dialogs the same for me. I dont know if there are guidelines for this

Rafael Costa

03/28/2022, 1:01 PM
Found an answer for non compose navigation
From @Ian Lake . I'm guessing this is expected here for the same reasons

Ian Lake

03/28/2022, 4:58 PM
Yep, WAI as per the docs on FloatingWindow destinations (which would include dialogs, bottom sheets, etc):

Rafael Costa

03/28/2022, 5:01 PM
Great, thank you for confirming 🙏