Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

React routing docs provide conflicting information on nested navigation

オープン
#1,604 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react
領域
documentation

調査の方向性

React のナビゲーションページから始め、ネストされたルーティングの例と、下記の IonRouterOutlet に関するガイダンスを比較してください。競合しているドキュメントを明確化または改訂し、ネストされたナビゲーションでサポートされるアプローチが明確になるようにしたうえで、レンダリングされたページが同じ動作を一貫して説明していることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

triage

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:

    <IonApp>
      <IonReactRouter>
        <IonRouterOutlet>
          <Route path="/dashboard" component={DashboardPage} />
          <Redirect exact from="/" to="/dashboard" />
        </IonRouterOutlet>
      </IonReactRouter>
    </IonApp>

with the DashboardPage component further down:

const DashboardPage: React.FC = () => {
  return (
    <IonRouterOutlet>
      <Route exact path="/dashboard" component={UsersListPage} />
      <Route path="/dashboard/users/:id" component={UserDetailPage} />
    </IonRouterOutlet>
  );
};

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:

An IonRouterOutlet should also not be a descendant from another IonRouterOutlet.

In direct contradiction with what was showcased a few paragraphs above.

主要言語
MDX
スター
621
フォーク
3.2k
平均マージ
1日 6時間
マージ済み PR(30日)
65

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-docs のほかの issue

ionic-team/ionic-docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。