ionic-team / ionic-team/ionic-docs

React Navigation needs a mention of useIonRouter

Open
#2,494 1 comment 0 reactions 0 assignees View on GitHub
content package: react
Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.