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. ⚡
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. ⚡