ionic-team / ionic-team/ionic-docs

React Navigation needs a mention of useIonRouter

未关闭
#2,494 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
content package: react
主要语言
MDX
星标
621
派生
3.2k
平均合并
1 天 2 小时
30 天内合并 PR
86

描述

**URL**
https://ionicframework.com/docs/react/navigation

**What is missing or inaccurate about the content on this page?**
I've looked all over the docs, and I haven't been able to find a single mention of using `useIonRouter` within Ionic React.

I was trying to navigate to a page and specify the direction of the animation, and the only way I ended up finding `useIonRouter` was by following usage of the `RouterDirection` type.

Sure enough the import is [mentioned in `@ionic/vue`](https://ionicframework.com/docs/vue/utility-functions#router), but it doesn't exist for React.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。