-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: Ionic React Breadcrumbs href
prop causes full page refresh
#24493
Comments
Thanks for the issue! This issue has been labeled as In the meantime, please read our Winter Holiday Triage Guide for information on how to ensure that your issue is triaged correctly. Thank you! |
Thanks for reporting this @babycourageous! I agree, |
Thanks so much for the update @sean-perkins . Oh wow AND PR. Awesome!! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
There currently isn't a
routerLink
prop on theIonBreadcrumb
for Ionic React. It seems the only way to navigate with them is through thehref
prop which causes a full page refresh and you lose out on animations, etc.Filing this under bug since it seems other "routing" type components do have a
routerLink
prop for Ionic React components to take advantage of. But happy to move to Feature Request if that's more appropriate a spot.Thanks!
Expected Behavior
I think since breadcrumbs are used to route within your app having a
routerLink
prop for React apps like other routing components so that there isn't a full page refresh when using the breadcrumb.Steps to Reproduce
You can spin up the repo sample and navigate either to the "list" or "detail" page. If you then use the breadcrumb to navigate back in the tree you will see the full page refresh.
Code Reproduction URL
https://github.com/babycourageous/ionic-breadcrumbs-routing-refresh
Ionic Info
Ionic:
Ionic CLI : 6.18.1 (/Users/renedellefont/.fnm/node-versions/v14.17.6/installation/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 6.0.1
Capacitor:
Capacitor CLI : 3.3.3
@capacitor/android : not installed
@capacitor/core : 3.3.3
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.5.0
System:
NodeJS : v14.17.6 (/Users/renedellefont/.fnm/node-versions/v14.17.6/installation/bin/node)
npm : 6.14.15
OS : macOS Big Sur
Additional Information
No response
The text was updated successfully, but these errors were encountered: