Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react): use custom animation when going back after a replace #28674

Merged
merged 2 commits into from Dec 11, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Dec 8, 2023

Issue number: resolves #28673


What is the current behavior?

When reviewing #28671 I noticed a bug where the custom animation was not used when going back after a replace.

handleNavigate will override whatever is in incomingRouteParams. Since we were passing routeAnimation (which is undefined), it was overriding the animation we set in handleNavigateBack.

What is the new behavior?

  • routeAnimation is no longer overridden

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 7.6.1-dev.11702048520.13c82dad

@github-actions github-actions bot added the package: react @ionic/react package label Dec 8, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review December 8, 2023 15:26
@liamdebeasi liamdebeasi added this pull request to the merge queue Dec 11, 2023
Merged via the queue into main with commit fc88613 Dec 11, 2023
56 checks passed
@liamdebeasi liamdebeasi deleted the FW-5723 branch December 11, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: react @ionic/react package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: react, pressing back button after replacing with custom animation does not use custom animation
2 participants