Skip to content

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

Merged
liamdebeasi merged 2 commits into
mainfrom
FW-5723
Dec 11, 2023
Merged

fix(react): use custom animation when going back after a replace#28674
liamdebeasi merged 2 commits into
mainfrom
FW-5723

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Dec 8, 2023

Copy link
Copy Markdown
Contributor

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
@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