Const
Console logs trace information about the provided Readable or WatchEffect.
import { writable, watch } from "@embra/reactivity";import { trace } from "@embra/reactivity/debug";const count$ = writable(0);trace(count$);watch(() => count$.value++);count$.set(1); Copy
import { writable, watch } from "@embra/reactivity";import { trace } from "@embra/reactivity/debug";const count$ = writable(0);trace(count$);watch(() => count$.value++);count$.set(1);
Console logs trace information about the provided Readable or WatchEffect.