-
Hello @ALL, I'm trying to create a countdown component which is then added to the setInterval execution but when the component property is updated I'm trying to clear the previous interval but instead of that the previous interval is still executing stacking with the new interval executing again. I even try to add the interval into the property but still doesn't work.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'd suggest to check the countdown plugin code here which basically overcomes the same issue (the interval is assigned and cleared from the element itself inside the script) |
Beta Was this translation helpful? Give feedback.
I'd suggest to check the countdown plugin code here which basically overcomes the same issue (the interval is assigned and cleared from the element itself inside the script)