conditional-watch

command
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Conditional Watch — reactive demo. A dual-server monitor that showcases WatchEffect's dynamic dependency tracking. Both servers update every frame via a simulation controller. The "Active Monitor" panel uses a single WatchEffect that reads from Server A or Server B depending on the selection: when Server A is active it subscribes to A's refs; switch to Server B and the watch automatically drops A's refs and picks up B's. No manual unsubscribe needed — the scheduler manages subscription bookkeeping on every re-run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL