Skip to main content

A lightweight implementation of signals with explicit subscription.

This package works with Node.js, Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
100%
Published
a week ago (1.3.3)
f
clearEffect

Unregesters given effect, halting it and allowing it to be GC'ed.

c
Comp

A subscriber signal that recomputes each time it's subscriptions have mutated. Recomputions are lazy (on demand).

T
ComparisonFn

Function that is used to compare values before committing the result.

T
Compute

Function that is used to subscribe to other signals and derive a value.

f
createEffect

Creates an effect that reexecutes each time it's subscriptions mutate.

f
createSignal

Creates a subscriber signal that recomputes each time it's subscriptions have mutated. Recomputions are lazy (on demand).

T
EffectFn

Function that is used to subscribe to other signals and execute side effects.

T
EffectToken

Unique identifier for effects.

c
Primary

A primary signal that notifies it's subscribers about it's mutations.

T
SchedulerFn

Function that is used to schedule effects.

T
Signal

Any signal entity that can be subscribed to.