Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng
#4,306 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
36.2k
Fork
1.1k
Merge trung bình
10 giờ 57 phút
Pull request đã merge (30 ngày)
360

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của solidjs/solid

Tất cả issue của solidjs/solid

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.