[Content]: Document Single-Flight Mutations + failures
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
- 35/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu bằng cách xem lại SolidStart 1.0 release announcement về Single-Flight Mutations chart và so sánh với phần Actions trong Solid Router documentation. Xác định phạm vi của phần tài liệu mới xoay quanh cách sử dụng, các lỗi mutation và tìm nạp dữ liệu, cũng như mối quan hệ giữa mutation và actions. Được xem là hoàn tất khi các khái niệm liên quan, cách xử lý lỗi và việc điều hướng giữa hai khu vực tài liệu đã rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
📚 Subject area/topic
SolidStart Single-Flight Mutations
📋 Page(s) affected (or suggested, for new content)
New section rquired
📋 Description of content that is out-of-date or incorrect
It would be useful and important to add documentation for Single-Flight Mutations. This doesn't seem to be documented anywhere. It should include:
- A description of what it is and how to use it
- An Eraser chart of how mutations actually work (look at SolidStart 1.0 release announcement for a sample)
- How to handle failures
Regarding the last point, this came up in a conversation recently in Start Team chat:
From what I understand, if the mutation (action) fails then you handle that as normal, whether by catching the error or using submission state. If one of the data fetches fail then that'll be reflected by whatever createAsync is consuming the data fetch, since SFM just inserts the promise returned by cache on the server into the cache on the client
What's also confusing is the fact that there's an Action section in the router docs however it's unclear how it's related to SFMs. It's slightly confusing that actions are described in router outside of Start as well.
I'm wondering if it's necessary to create a section describing mutations and ensure that users know how to find their way to actions? Perhaps this is a separate issue entirely? I don't see this requested/discussed in other topics so I'll pose it here for now.
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
- 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của solidjs/solid-docs
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
solidjs/solid-docs#1635 ·
-
[Content]: Cloudflare Workers Đang mởgood first issue solid solidstart
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
solidjs/solid-docs#1522 ·
-
pending review
solidjs/solid-docs#1637 · 1 người được giao ·
-
pending review
solidjs/solid-docs#1636 · 1 bình luận · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
solidjs/solid-docs#1630 · 1 bình luận ·
Tất cả issue của solidjs/solid-docs
Issue tương tự
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
-
sync-en
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
-
Перевод устарел
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
-
affects/8.7 affects/8.8 affects/8.9
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
camunda/camunda-docs#9997 ·
-
Website Doc Typo Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100