ionic-team / ionic-team/ionic-docs
React routing docs provide conflicting information on nested navigation
- 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
The React Navigation document contains a small bit of conflicting information (which caused me some confusion).
The docs first showcase an example of nested routing using `IonRouterOutlet`:
```jsx
```
with the `DashboardPage` component further down:
```jsx
const DashboardPage: React.FC = () => {
return (
);
};
```
So upon navigating to the `/dashboard` routes, we'd expect the `DashboardPage` component to work and allow for nested navigation.
However, this does **not** work properly. Indeed, the docs also say [below](https://ionicframework.com/docs/react/navigation#ionrouteroutlet):
> An `IonRouterOutlet` should also not be a descendant from another `IonRouterOutlet`.
In direct contradiction with what was showcased a few paragraphs above.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.