solidjs / solidjs/solid-docs

[Content]: Memos explanation and examples issues

Đang mở
#541 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

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

in progress solid
Ngôn ngữ chính
MDX
Star
292
Fork
361
Merge trung bình
7 giờ 51 phút
Pull request đã merge (30 ngày)
1

Mô tả

📚 Subject area/topic

Memos

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/concepts/derived-values/memos

📋 Description of content that is out-of-date or incorrect
  • The difference in behavior between memos and derived signals isn't clear enough, which makes it harder to understand when to use memos instead of derived signals

  • The side effect example doesn't cause an infinite loop but the sentence right above and below it talks about infinite loops which is a little confusing. The reader might think that the example code does cause an infinite loop even though it doesn't

  • The "Keep logic in memos" example doesn't behave the way it says, the memo will rerun every time count() changes

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

https://playground.solidjs.com/anonymous/53b087c4-7620-4a79-a60e-9477782856f5

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Đánh giá

Issue này chưa được đánh giá.

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.