xiaoluoboding / vue-sonner

🔔 An opinionated toast component for Vue.
https://vue-sonner.vercel.app
MIT License
803 stars 41 forks source link

fix: fix the problem of rate calculation error when clicking actions … #71

Closed libondev closed 2 months ago

libondev commented 3 months ago

https://github.com/xiaoluoboding/vue-sonner/assets/47918504/b8e2c0ee-ab73-4d1e-b708-4c6e41e845c8

Occasionally, when clicking actions at a very fast speed, there will be calculation errors. This pr is initiated to solve this problem.

At the same time, I noticed that this variable only participated in the calculation of js part, so I replaced it with an ordinary variable and modified its type, hoping it could run faster. ⚡

vercel[bot] commented 3 months ago

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

Name Status Preview Comments Updated (UTC)
vue-sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 10:39am