question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Navigation: chain of push/replace

See original GitHub issue

Bug Report

Ionic version:

[ ] 4.x [x] 5.x

Steps to reproduce: https://github.com/Elardzhi/Ionic-React-navigation.git

Description: In the demo repository, we have a chain of history.replace and history.push. Page 1 -> Page 2 : history.replace, no animation, working as expected Page 2 -> Page 3 : history.push, transition with animation, working as expected Page 3 -> Page 4 : history.replace, animation exists, not expected Page 4 -> Page 1 : history.replace, animation exists, not expected Page 1 -> Page 2 : history.replace, URL is updated, but no transition to Page 2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
aaronksaunderscommented, Aug 17, 2020

@elylucas where is there documentation in ionRouterContext? running into similar issues

3reactions
elylucascommented, Jul 29, 2020

Also, you can specify the routerDirection programatically by using our ionRouterContext to do the transition:

const ionRouterContext = useContext(IonRouterContext);

       <IonButton
          onClick={() => {
            ionRouterContext.push('/page2', "none");
          }}
        >to Page 2</IonButton>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter Navigation push Replacement is not working when not ...
I want to use this (Push Replacement, will not going back), but it doesnt work and act like normal Push: Navigator .of(context) .pushReplacement...
Read more >
Navigate to a new screen and back - Flutter documentation
In Flutter, a route is just a widget. This recipe uses the Navigator to navigate to a new route. The next few sections...
Read more >
push and replace flutter Code Example
Queries related to “push and replace flutter” · custom appbar flutter · pushreplacement flutter · flutter push navigation · flutter navigator.
Read more >
2.10 ERROR SYSTEM - Eso.org
Errors are generated in a cascade sequence until either the error is ... Navigation through the list of errors is supported by the...
Read more >
Understanding Flutter navigation and routing - LogRocket Blog
Flutter Navigator class · Navigator provides more methods, including *pushReplacement* , that make arguments similar to · push . It will replace ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found