Skip to content
module@warp-drive/alien-signals/primitives

Function notifySignal() sincev5.10.0 ​

ts
function notifySignal(signal: SignalNode): void;

Defined in: primitives.ts:221

Tells everything that depends on signal that the value it guards changed: memos that read it recompute on their next read, and each Watcher watching it, or a memo that read it, is notified. Watchers are notified after the whole graph has been marked, before this returns.

Parameters ​

signal ​

SignalNode

the signal whose value changed

Returns ​

void

Example ​

ts
import { createSignal, notifySignal } from '@warp-drive/alien-signals/primitives';

const signal = createSignal(user, 'name');
user.cachedName = 'Chris';
notifySignal(signal);

Released under the MIT License.