Pricing Blog

How do I stop a "Interval" action?

  • patrickmast-1259553589538590720

    Patrick Mast

    1 year ago

    I have an event that includes an "Interval" action. How can I stop the interval?
  • lucasg-1259555618528821318

    Lucas G

    1 year ago

    There is no stopInterval() in toddle. You'll either have to use conditions to manage it or use a custom action
  • patrickmast-1261681455747174484

    Patrick Mast

    1 year ago

    So, the interval action continues running in the background as long as the page is active. This sounds resource-intensive.
  • andreasmoller-1261745461174206464

    Andreas Møller

    1 year ago

    You can’t with that action.

    Instead you can create a workflow that calls itself after a delay
  • They have a variable like “running” you check before each loop
    👍1