next-progress icon indicating copy to clipboard operation
next-progress copied to clipboard

fix: clear timeout on start

Open THOUSAND-SKY opened this issue 2 years ago • 1 comments

Prevents multiple consecutive starts from overwriting the timeout and leaving unwanted running timeouts in the background.

Navigating through router.push multiple times in a row makes multiple start events before a complete event, so timeouts were being left uncleared, which then left the progress bar going. It would be good to clear the timeout before starting another one, so I did that here.

THOUSAND-SKY avatar Jul 28 '22 09:07 THOUSAND-SKY

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-progress ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2023 11:24am

vercel[bot] avatar Jul 28 '22 09:07 vercel[bot]

I'll try to have a look soon and release a new version with this included.

beeinger avatar Nov 20 '22 00:11 beeinger

I merged your PR to the fix/timeouts branch, will adjust it there and push to master and npm in a sec.

beeinger avatar Apr 25 '23 11:04 beeinger