Skip to content

Conversation

@thetaPC
Copy link
Contributor

@thetaPC thetaPC commented Aug 14, 2024

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 IonRouterOutlet to use IonTabs. This means that developers are forced to tie their tabs to a router.

What is the new behavior?

  • IonTabs can be used without a router outlet as long as IonTab is a child and IonRouterOutlet is not.
  • Added a test.
  • Added a test page: /tabs-basic

Does this introduce a breaking change?

  • Yes
  • No

Developers who are still using IonTabs with IonRouterOutlet will not experience any changes. This feature PR introduces another option to use IonTabs, no changes for the current implementation.

Other information

Dev build: 8.2.8-dev.11724280606.1a8c11d4

@vercel
Copy link

vercel bot commented Aug 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 8:42pm

@github-actions github-actions bot added package: core @ionic/core package package: react @ionic/react package labels Aug 14, 2024
@dev-charles15531
Copy link

I think i can do a vue PR for this. What do you think?

@thetaPC
Copy link
Contributor Author

thetaPC commented Aug 14, 2024

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

@dev-charles15531
Copy link

Okay, thank you!

@thetaPC thetaPC changed the base branch from feature-8.3 to tabs-router August 14, 2024 17:35
@thetaPC thetaPC marked this pull request as ready for review August 15, 2024 19:29
@thetaPC thetaPC requested a review from a team as a code owner August 15, 2024 19:29
@thetaPC thetaPC requested review from OS-giulianasilva and brandyscarney and removed request for a team August 15, 2024 19:29
Copy link
Contributor

@sean-perkins sean-perkins left a 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!

Copy link
Member

@brandyscarney brandyscarney left a 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 IonRouterOutlet removed and IonTab components containing only text content
  • The Ionic React Conference App

Everything is working correctly. Great job on this! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package package: react @ionic/react package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants