valdres-signals
v0.0.1
Published
JavaScript Signals (TC39) bindings for Valdres — reserved. Not yet implemented; today use the framework-agnostic `valdres` core. See README.
Maintainers
Readme
valdres-signals
Reserved — not yet implemented.
This package name is reserved for first-class JavaScript Signals (the TC39 proposal) bindings for Valdres. It currently ships no functionality.
A standards-based adapter could interop with any signals-aware framework through
the proposed Signal type rather than per-framework primitives.
Use Valdres with Signals today
The TC39 proposal is not yet native — until then, the
signal-polyfill
provides Signal.State / Signal.Computed. The valdres core is
framework-agnostic — drive it directly and bridge it into a signal:
import { store, atom } from "valdres"
const s = store()
const counter = atom(0)
s.get(counter) // read
s.set(counter, 1) // write
const unsub = s.sub(counter, () => {
// push s.get(counter) into a Signal.State (signal-polyfill)
})Dedicated valdres-signals bindings will wrap this pattern for you. Track
progress at https://github.com/eigilsagafos/valdres
