alien_signals 0.0.12 copy "alien_signals: ^0.0.12" to clipboard
alien_signals: ^0.0.12 copied to clipboard

The lightest signal library - Dart implementation of alien-signals.

example/main.dart

import 'package:alien_signals/alien_signals.dart';

void main() {
  final count = signal(0);
  final doubled = computed((_) => count.get() * 2);

  effect(() {
    print('Count: ${count.get()}, D: ${doubled.get()}');
  });

  count.set(1);
  count.set(2);
}
2
likes
0
points
637
downloads

Publisher

verified publishermedz.dev

Weekly Downloads

The lightest signal library - Dart implementation of alien-signals.

Repository (GitHub)
View/report issues

Topics

#signal #signals #reactive #alien-signals #state

Funding

Consider supporting this project:

github.com
opencollective.com

License

unknown (license)

More

Packages that depend on alien_signals