ionic-team / ionic-team/ionic-docs

React Navigation needs a mention of useIonRouter

Abierto
#2,494 1 comentario 0 reacciones 0 asignados Ver en GitHub
content package: react
Lenguaje dominante
MDX
Estrellas
621
Forks
3.2k
Merge medio
1 d 2 h
PR fusionados (30 d)
86

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.