next-progress
next-progress copied to clipboard
fix: clear timeout on start
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.
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 |
I'll try to have a look soon and release a new version with this included.
I merged your PR to the fix/timeouts
branch, will adjust it there and push to master and npm in a sec.