Clicking the return button of AddEditTaskTopAppBar causes a blank interface.
When the return button of AddEditTaskTopAppBar is clicked and then the openDrawer button of TasksTopAppBar is immediately clicked within a short period of time, a blank interface will occur.
Hi @yaosming 👋
Thanks for reporting this!
It sounds like the issue might be caused by overlapping navigation and drawer state transitions — clicking the return button quickly followed by the openDrawer button could be triggering unexpected recompositions or conflicting coroutines.
A few follow-up questions to help investigate:
Are you using rememberCoroutineScope() to open the drawer?
Is the navigation back action calling popBackStack() immediately before launching any UI change?
Can you reproduce this behavior consistently on specific devices or is it intermittent?
Possible next steps:
Wrap openDrawer() in a LaunchedEffect to avoid overlap with back navigation.
Use LifecycleOwner or isActive flags to prevent drawer actions from firing during disposal or nav transitions.
Let us know if you can share a minimal reproducible example — happy to dig deeper from there.
Thanks again!