Skip to content

feat(hooks): add exponential backoff and stale flag to useSignalPrice#457

Closed
syed-ghufran-hassan wants to merge 1 commit into
AgesEmpire:mainfrom
syed-ghufran-hassan:patch-1
Closed

feat(hooks): add exponential backoff and stale flag to useSignalPrice#457
syed-ghufran-hassan wants to merge 1 commit into
AgesEmpire:mainfrom
syed-ghufran-hassan:patch-1

Conversation

@syed-ghufran-hassan

Copy link
Copy Markdown
  • Replace fixed setInterval with recursive setTimeout for dynamic polling
  • Track consecutive failures and apply exponential backoff (capped at 30s)
  • Expose isStale flag to indicate when price data may be outdated
  • Reset backoff to base interval on successful poll
  • Follow retry patterns from hooks/useSignals.ts and services/webhookService.ts

Fixes issue where transient outages would cause silent polling failures with stale UI display and no recovery mechanism.

Closes # #455

  
- Replace fixed setInterval with recursive setTimeout for dynamic polling  
- Track consecutive failures and apply exponential backoff (capped at 30s)  
- Expose isStale flag to indicate when price data may be outdated  
- Reset backoff to base interval on successful poll  
- Follow retry patterns from hooks/useSignals.ts and services/webhookService.ts  
  
Fixes issue where transient outages would cause silent polling failures  
with stale UI display and no recovery mechanism.  

Closes # AgesEmpire#455
@Mathews-25 Mathews-25 closed this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants