Skip to content

fix(useSmartPolling): keep polling alive and apply backoff to running timer - #577

Open
Biglamar wants to merge 1 commit into
MergeFi:mainfrom
Biglamar:fix/issue-568-569-useSmartPolling
Open

Biglamar wants to merge 1 commit into
MergeFi:mainfrom
Biglamar:fix/issue-568-569-useSmartPolling

Conversation

@Biglamar

@Biglamar Biglamar commented Oct 3, 2026

Copy link
Copy Markdown

Closes #568 Closes #569

…backoff to the running timer

- Read fetchFn/compareFn/onDataChange and interval options through refs so
  inline callbacks from callers no longer tear down and fail to restart the
  polling interval after the first re-render (fixes MergeFi#568).
- Reschedule the interval whenever the effective delay changes so backoff
  actually slows the running timer down, and refetch/reset restores the base
  interval (fixes MergeFi#569).

Closes MergeFi#568
Closes MergeFi#569
@vercel

vercel Bot commented Oct 3, 2026

Copy link
Copy Markdown

@innocentharuna is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@Biglamar

Biglamar commented Oct 4, 2026

Copy link
Copy Markdown
Author

Please merge

1 similar comment
@Biglamar

Biglamar commented Oct 4, 2026

Copy link
Copy Markdown
Author

Please merge

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants