MCPcopy
hub / github.com/stackblitz/alien-signals / signal

Function signal

tests/conformance.spec.ts:6–12  ·  view source on GitHub ↗
(initialValue)

Source from the content-addressed store, hash-verified

4
5const framework: ReactiveFramework = {
6 signal(initialValue) {
7 const s = signal(initialValue);
8 return {
9 read: () => s(),
10 write: (v) => s(v),
11 };
12 },
13 computed(fn) {
14 const c = computed(fn);
15 return { read: () => c() };

Callers

nothing calls this directly

Calls 1

signalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…