New:Socket for Asana Is Now Available.Learn more
Get Started

@webreflection/alien-signals

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webreflection/alien-signals

alien-signals with a Preact signals like API

latest
Source
npmnpm
Version
0.4.2
Version published
Weekly downloads
19K
-1.61%
Maintainers
1
Weekly downloads
 
Created
Source

@webreflection/alien-signals

alien-signals with a Preact signals like API and a class based approach for easy brand check.

import {
  Signal, signal,
  Computed, computed,
  effect, untracked, batch,
  // all other alien-signals exports
} from '@webreflection/alien-signals';

const count = signal(0);
const double = computed(() => count * 2);
//               implicit count.valueOf()

console.assert(count instanceof Signal);  // true
console.assert(double instanceof Signal); // true

effect(() => {
  console.log('count', count.peek());
  //                  no subscription

  console.log('double', double.value);
});

count.value++;

Extra Feature

A signal created via signal(value, { greedy: true }) will effect any time the same value is set again, as opposite of ignoring the explicit set operation.

Follow this discussion if interest in upstream feedbacks: https://github.com/stackblitz/alien-signals/issues/83

Keywords

alien-signals

FAQs

Package last updated on 18 Oct 2025

Related posts