[api] Map React SDK stream fetches to the backend detail contract
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.
@olacodes-01 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello Maintainer, I have reviewed this issue and I have relevant experience in solving it. Please assign to me.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @olacodes-01 to this issue.
@Dev-Ugee has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Good day maintainer, I would like to work on this. I have read and understood the issue requirement and i can deliver a graceful solution, please assign
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Dev-Ugee to this issue.
@intelliDean has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
I'd like to work on this issue
ℹ️ Repo Maintainers: To accept this application, review their application or assign @intelliDean to this issue.
Congratulations, @intelliDean! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @intelliDean: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
🎉 This issue has been marked as completed on GrantFox!
@intelliDean's PR #1718 was approved and merged by @blurbeast.
🏆 @intelliDean: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (140 total points). Track your full progress on GrantFox.
👏 Great work, @intelliDean! Keep contributing to LabsCrypt.
This issue has been completed by @intelliDean as part of the Stellar Wave Program's 10th Wave 🥳
😎 @intelliDean: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.