intervalFnStore

Wrapper for setInterval with controls

Demo

Hello

Interval:

Usage

<script lang="ts">
import { intervalFnStore } from "svelte-legos";

const { pause, resume, isActive, changeIntervalTime } = intervalFnStore(() => {
  /* your function */
}, 2000);
</script>