[Frontend] Cancel in-flight webhook delivery-log fetches to avoid races and post-unmount updates
Overview & Background
The webhook delivery-log effect (frontend/src/components/webhooks/WebhookDeliveryModal.tsx:10) has no cleanup — no AbortController, no cancelled flag. Rapid pagination lets a slow older response resolve after a newer one and overwrite deliveries/total with stale data; closing the modal mid-flight calls setDeliveries/toast.error after unmount. The codebase already does this correctly elsewhere — stream-details-content.tsx:175-189 uses AbortController + request IDs.
Technical Specification & Architecture
- Return a cleanup that sets a
cancelledflag (or aborts the fetch if the API layer supports it) and guard the.thensetters. - Follow the existing
stream-details-content.tsxpattern for consistency.
Target Files
frontend/src/components/webhooks/WebhookDeliveryModal.tsx
Acceptance Criteria
- [ ] Out-of-order responses cannot overwrite newer data.
- [ ] No state updates or toasts fire after unmount.
- [ ] A test simulating stale-response arrival passes.
@Lebmont8 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
Hello, I'm interested in taking this issue on.
I'm a full-stack developer with 4+ years of experience, working with TypeScript, React and Next.js. I'll build this to match the patterns already used elsewhere in the project, with tests covering the new behavior.
Planned approach, based on the acceptance criteria:
- Add cleanup and stale-request guards to the webhook delivery-log effect, following the existing request-lifecycle pattern.
- Prevent older pagination responses from overwriting newer delivery data.
- Suppress state updates and error toasts from requests invalidated by cleanup or unmount.
- Add regression tests for out-of-order responses and closing the modal mid-request.
Looking forward to contributing — please assign this issue to me.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Lebmont8 to this issue.
@Fury03 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
I can work on this
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Fury03 to this issue.
Congratulations, @Fury03! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @Fury03: 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 completed by @Fury03 as part of the Stellar Wave Program's 11th Wave 🥳
😎 @Fury03: 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.