-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat(react): use tabs without router #29772
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I think i can do a vue PR for this. What do you think? |
|
@dev-charles15531 We greatly appreciate the offer! However, we will be working on the Vue portion very soon. I would recommend looking through the other existing issues. There are some related to router if you're interested in those. |
|
Okay, thank you! |
sean-perkins
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woo, nice work on this!
brandyscarney
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the latest dev build in:
- A new React tabs starter app
- A new React tabs starter app with
IonRouterOutletremoved andIonTabcomponents containing only text content - The Ionic React Conference App
Everything is working correctly. Great job on this! 🎉
Issue number: part of #25184
This PR does not completely close the issue since it only addresses the React portion. The other frameworks will be done through other PRs.
What is the current behavior?
React: Developers have to provide
IonRouterOutletto useIonTabs. This means that developers are forced to tie their tabs to a router.What is the new behavior?
IonTabscan be used without a router outlet as long asIonTabis a child andIonRouterOutletis not./tabs-basicDoes this introduce a breaking change?
Developers who are still using
IonTabswithIonRouterOutletwill not experience any changes. This feature PR introduces another option to useIonTabs, no changes for the current implementation.Other information
Dev build: 8.2.8-dev.11724280606.1a8c11d4