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

Errored fallback with an async hole is dropped inside a pending outer Loading (SSR streaming)

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

メンテナーはふだん 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:

  • user rejects with "no user 7" at 5ms.

  • hint resolves to "HINT" at 10ms.

  • outer resolves 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 on next.

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

環境構築

はじめの一歩

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

solidjs/solid のほかの issue

solidjs/solid の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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