Skip to content

bug: double navigation and navigation crashes #87

Description

@ssalggnikool

issue

spam clicking a button that navigates to a different screen can cause the navigation to occur multiple times

if the navigation in question is navigator::pop, it will crash the app if you navigate backwards at the root of the navigation

Screencast_20260706_221421.mp4

in this video i'm spam clicking the settings button, observe how I have to click back many times because settings has been pushed many times

then i spam click the back button, which results in a crash

solution

wrap all navigations in dropUnlessResumed (this is recommended by google and it is what i am doing to resolve it in Navic)

it is very tedious to wrap everything in dropUnlessResumed and i don't want to make a massive change like that in every single file so i will leave this up to discussion for a better solution if needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions