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

What gets passed to the `when` prop of a `Show` still gets executed twice on SSR

Đang mở
#4,518 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/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 the linked playground and read the Show usage and its output for both keyed settings. Then trace how Show is evaluated during v1 server-side rendering; the issue does not name a source file or test. Done means the when value is read once on the server in both modes, without a hydration mismatch.

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

Mô tả

Describe the bug

Basically the same as #2406, but it still happens on the server, and has even more serious implications when you pass elements, because they get a new hydration key for each run, which doesn't happen on the client, thus creating a hydration mismatch.
This is a v1 issue

Your Example Website or App

https://playground.solidjs.com/anonymous/00265201-7751-427d-aaa4-8d1a6d4a01da

Steps to Reproduce the Bug or Issue
  1. Read the playground's output
Expected behavior

I expected "1.9.15 server: 2 reads" to be "1.9.15 server: 1 reads" both on "keyed=false" and "keyed=true"

Screenshots or Videos

No response

Platform
  • OS: Windows
  • Browser: Edge (Chromium)
  • Version: 156.0.4314.50
Additional context
  • It was fixed on the client after v1.9.4
  • Doesn't happen in v2.0.0-rc.20
  • Claude created the repro, hope it's clear
  • Doesn't seem to happen on Switch and Match
Ngôn ngữ chính
TypeScript
Star
36.2k
Fork
1.1k
Merge trung bình
11 giờ 48 phút
Pull request đã merge (30 ngày)
441

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.