Skip to content

Commit

Permalink
fix timerStore
Browse files Browse the repository at this point in the history
  • Loading branch information
00casanova00 committed Jan 10, 2025
1 parent 3c04bea commit 02ca0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte-ux/src/routes/docs/stores/timerStore/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import Preview from '$lib/components/Preview.svelte';

const dateTimer = timerStore({ initial: new Date(), onTick: () => new Date() })
let { isRunning: isDateRunning } = $derived(dateTimer);
let { isRunning: isDateRunning } = dateTimer;

const tickTimer = timerStore({ initial: 0, onTick: (value) => value + 1 })
let { isRunning: isTickRunning } = $derived(tickTimer);
let { isRunning: isTickRunning } = tickTimer;
</script>

<h1>Usage</h1>
Expand Down

0 comments on commit 02ca0dc

Please sign in to comment.