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

[api] Map React SDK stream fetches to the backend detail contract

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

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

@intelliDean đang làm issue này rồi.

Từ ngày 21/10/2026.

  • #1718 của @intelliDean — đã merge

Đánh giá

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

Mô tả

api points: 150 sdk Stellar Wave

Labels: api, sdk, points: 150
File/location: packages/flowfi-react/src/hooks/useStream.ts:27

Description:
When rpcUrl is provided, useStream requests a list URL with ?id= rather than /:streamId. The REST list ignores id and returns a collection, which is assigned as a FlowFiStream without mapping its fields.

Acceptance Criteria:

  • Fetch a stream via the documented detail endpoint regardless of whether a Soroban RPC URL is configured; keep REST and RPC configuration separate.
  • Map the real backend response into FlowFiStream, and cover a configured provider, not-found response and switching stream IDs.

Notes:
Source trace: rpcUrl selects ?id= on a list endpoint and JSON is cast without the FlowFiStream mapping.

Audited commit: 649b6976a100fd964ce191428eef1faeb50aaa39. Closest prior issues reviewed: #1475. This report concerns the specific failure or uncovered test paths described above, rather than repeating the original feature request.

Ngôn ngữ chính
TypeScript
Star
18
Fork
250
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
82

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 LabsCrypt/flowfi

Tất cả issue của LabsCrypt/flowfi

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.