SIGN IN SIGN UP

fix(price): stop order-status polling and setState after unmount (#2103)

* fix(price): stop order-status polling and setState after unmount

polling rescheduled timer.current inside the in-flight .then after the
cleanup already ran, leaking a 3s forever-poll and calling setState on
an unmounted component. Track a mounted ref and bail out of the .then
after unmount.

Fixes #2097

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: isolate payment polling generations

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: zgq <openai0229@gmail.com>
A
aias00 committed
53ab688cfe1d891111676fde8d69ebcc80062fc0
Parent: 9219040
Committed by GitHub <noreply@github.com> on 7/25/2026, 3:30:24 PM