Errored fallback with an async hole is dropped inside a pending outer Loading (SSR streaming)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, typescript
- 領域
- frontend
調査の方向性
Start with renderOutcome in packages/solid/src/server/signals.ts, then trace how the nested Errored region is handled while the outer Loading boundary is pending. Reproduce the reported timing with the three async createMemos and compare streamed and loaded hydration. Done when both hydrate with “outerfailed: no user 7 HINTtail” and no hydration warnings.
索引モデルが issue の本文から書いたものです。
説明
What happens
An <Errored> whose fallback reads async data, sitting inside an outer <Loading> that is still pending, hydrates without its fallback when the inner <Loading> fails after the shell. The Errored region disappears.
<div>
<Loading fallback={<i>outer loading</i>}>
<b>{outer()}</b>
<Errored fallback={e => <p>failed: {e().message} {hint()}</p>}>
<Loading fallback={<i>loading</i>}>
<span>user:{user()}</span>
</Loading>
</Errored>
</Loading>
<span>tail</span>
</div>
Three async createMemos are created in the component body:
-
userrejects with "no user 7" at 5ms. -
hintresolves to "HINT" at 10ms. -
outerresolves to "outer" at 15ms. -
Expected:
outerfailed: no user 7 HINTtail -
Actual:
outertail, with one or two hydration warnings. Both streamed and loaded hydration show this onnext.
Server output
The shell has <i>outer loading</i> at pl-4. The stream rejects user, resolves hint, then sends <template id="4"><b _hk=4000>outer</b></template> and $df("4"). It sends nothing for the Errored region: no fallback markup and no inner placeholder.
Likely cause (unconfirmed)
The inner fragment is parked under the pending outer boundary. It fails while the Errored fallback's async hole is still pending, so the outcome render (renderOutcome in packages/solid/src/server/signals.ts) produces no markup. When the outer Loading later resolves, the Errored subtree is dropped instead of sending its fallback, or a placeholder the client can render into.
Found while reviewing #4303. That PR fixes the same shape without the outer Loading; this nested case fails the same way before and after it.
Generated by Claude Code
- 主要言語
- TypeScript
- スター
- 36.2k
- フォーク
- 1.1k
- 平均マージ
- 11時間 5分
- マージ済み PR(30日)
- 353
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
solidjs/solid のほかの issue
-
`lazy()`: remounting an already-loaded component renders empty (or the Suspense fallback) since 1.9.14対応中かも @itisrmk が 10 日前に担当しました。 オープン1.x
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 1〜2日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
`createRoot`'s dispose function keeps `fn` alive, so `<For>`/`<Index>` rows retain removed list items対応中かも @boombang が 12 日前に担当しました。 オープン1.x
難易度 4/5 1〜2日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
Per-scope takeover for live nodes whose server value is still streaming (D8 follow-up to #3817)オープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
calcite-ui-icons enhancement impact - p3 - not time sensitive needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Esri/calcite-design-system#15467 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
diegosouzapw/OmniRoute#18390 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
guilhermerodz/input-otp#157 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
davidjerleke/embla-carousel#1414 ·
メンテナーはふだん 4 日以内に返信