ionic-team / ionic-team/ionic-docs

React Navigation needs a mention of useIonRouter

Đang mở
#2,494 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
content package: react
Ngôn ngữ chính
MDX
Star
621
Fork
3.2k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
86

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.