Skip to content

docs(navigation): correct routerDirection values #4079

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

Merged
merged 1 commit into from
Apr 16, 2025

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Apr 15, 2025

RouterDirection does not contain none: https://github.com/ionic-team/ionic-framework/blob/8dd566b5c1241022e26cc91c0f415de20c0d0f34/core/src/components/router/utils/interface.ts#L66

When using with Vue it gives this error:

Type '"none"' is not assignable to type 'RouterDirection | undefined'

While it might work for React, I think this is incorrect: https://github.com/ionic-team/ionic-framework/blob/8dd566b5c1241022e26cc91c0f415de20c0d0f34/packages/react/src/models/RouterDirection.ts#L1

Copy link

vercel bot commented Apr 15, 2025

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

Name Status Preview Comments Updated (UTC)
ionic-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2025 8:00pm

@brandyscarney brandyscarney marked this pull request as ready for review April 15, 2025 20:00
@brandyscarney brandyscarney requested a review from a team as a code owner April 15, 2025 20:00
@brandyscarney brandyscarney requested review from ShaneK and thetaPC April 15, 2025 20:00
Copy link
Contributor

@thetaPC thetaPC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brandyscarney brandyscarney merged commit 9b09832 into main Apr 16, 2025
4 checks passed
@brandyscarney brandyscarney deleted the bc/docs-navigation-router-direction branch April 16, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants