timeoutStore

Update value after a given time with controls.

Demo

Ready: false

Usage

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

const ready = timeoutStore(2000);

// use boolean as $ready


// or use it with controls
const { ready, start, stop } = timeoutStore(2000, { controls: true });

</script>