ionic-team / ionic-team/ionic-docs

React Navigation needs a mention of useIonRouter

Ouverte
#2,494 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
content package: react
Langage dominant
MDX
Étoiles
621
Forks
3.2k
Merge moyen
1 j 2 h
PR mergées (30 j)
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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.