Skip to content

signal

Read as Markdown

signal(initialValue, options?) returns a WritableSignal. Read with get(), replace with set(value), update from the current value with update(updater), and obtain a cached readonly view with asReadonly(). Equality defaults to Object.is; set() treats functions as data.

Signal reads performed while a component evaluates become that component’s dependencies. Pibbl-provided components also resolve signals at declared signal-valued props, style fields, and child inputs; the receiving component then owns the dependency. Pibbl never deep-unwraps arbitrary application data.

See Use signals and animation.

Related types: Signal, WritableSignal, and SignalOptions.

Creates a synchronous writable signal with configurable equality and an optional diagnostic name.

signal: <T>(initialValue: T, options?: SignalOptions<T>) => WritableSignal<T>

Related API: signal, SignalOptions, WritableSignal.

  • initialValue — Value stored before the first write.

  • options — Equality comparison and optional diagnostic name. See SignalOptions.

A writable signal holding the initial value. See WritableSignal.

SignalOptions

WritableSignal

View source — packages/core/src/lib/signals/graph.ts:521

Read the Authoring, signals, and lifecycle companion for ownership, adaptation, failure modes, and verification. Agent start provides the version-selection workflow.

Documentation built with @pibbl/core 0.0.2, revision 2dccb19. ALPHA — NOT FOR PRODUCTION USE.