Skip to content

ChristineXYS/ionicreact-navigation-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ionicreact-navigation-bug

  1. npm install
  2. ionic serve
  3. do push and go back, pay attention to the direction

In tab1.tsx and tab2.tsx, the key code is

const onNavigate = () => {

    //push with state, and the direction is wrong when go back
    //the same issue happen for query string too
    history.push("/tab2", {value: 1});

    //push without state, and the direction is right when go back
    // history.push("/tab2");
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published