[Bug]: Resetting Suspense boundaries on navigation not work
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 11.8k
- フォーク
- 7.9k
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 11
説明
Summary
Resetting Suspense boundaries on navigation not work
Page
https://react.dev/reference/react/Suspense
Details
I come up with an example as the documentation says:
However, now imagine you’re navigating between two different user profiles. In that case, it makes sense to show the fallback. For example, one user’s timeline is different content from another user’s timeline. By specifying a key, you ensure that React treats different users’ profiles as different components, and resets the Suspense boundaries during navigation. Suspense-integrated routers should do this automatically.
https://codesandbox.io/p/sandbox/react-dev-forked-4fszvr?file=%2Fsrc%2FApp.js
However, key do not work as expect, i.e. I did not see a loading indicator
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Suspense のリファレンスページから始め、そこにリンクされている CodeSandbox の再現例を src/App.js で実行します。観測されたナビゲーションの挙動を、key が Suspense 境界をリセットするというページの記述と比較し、そのうえで例とドキュメントのどちらを修正する必要があるかを判断します。報告された不一致が再現され、ページまたは例が挙動を正確に反映していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- documentation, frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100