Skip to main content
Home

@cjc/signal@0.3.5
Built and signed on GitHub Actions

A declarative design pattern for reactive state management, developed with Deno

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
5 days ago (0.3.5)
c
Computed

A ReadonlySignal that computes a given function and returns it's output.

f
computed

Creates a ReadonlySignal, whose value is generated by the provided compute function.

f
constant

Creates a simple wrapper around a value that implements the ReadonlySignal interface. (For cases where a Signal is desired to match an existing interface, but the overhead of an actual signal is undesirable.)

c
Effect

A schedulable side-effect.

f
effect

A schedulable side-effect that depends on up-to-date Signal values.

f
flushEffectQueue

Runs all Effects in a specified queue, clearing the queue in the process.

T
ReadonlySignal

A Signal that supports only the readonly get() operation.

I
Signal

A reactive wrapper around a value.

c
State

A WritableSignal that exposes an interface for overwriting it's internal value, signaling transitive dependents that they may need to recompute their values.

f
state

Creates a WritableSignal to wrap the provided value.

f
untracked

A function to run within an effect or computed function that accesses a Signal value, but without creating a dependency link to values accessed within untracked

I
WritableSignal

A Signal with a setter and mutator methods.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.