watch

A simple watcher to watch your readables.

Demo

Store value:
0
(Check console)

Usage

<script lang="ts">
import { watch } from "svelte-legos";
import { writable } from "svelte/store";

const counter = writable(0);
watch(counter, (counter) => {
	console.log(counter);
});
</script>