Skip to content

How to prevent successive state changes when user clicks 2 different links rapidly? #143

@EmreErdogan

Description

@EmreErdogan

Hello guys, have any of you seen this problem? When user clicks a link to page A and then clicks link to page B rapidly, both transitions happen at the same time and the user ends up on page B.

This also breaks down the history because when the user is on page B and presses back button then he is directed to page A instead of the initial page. A and B are not supposed to be successive pages in history.

I tried listening ionicNativeTransitions.beforeTransition, ionicNativeTransitions.success, and ionicNativeTransitions.error events to cancel a state change while there is another transition is active at that time period, but I couldn't succeed. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions