solidart 1.0.0-dev8 copy "solidart: ^1.0.0-dev8" to clipboard
solidart: ^1.0.0-dev8 copied to clipboard

A simple State Management solution for Dart applications inspired by SolidJS

example/main.dart

// ignore_for_file: avoid_print

import 'dart:async';

import 'package:solidart/solidart.dart';

Future<void> main() async {
  final count = createSignal(0);
  final doubleCount = createComputed(() => count() * 2);

  createEffect((dispose) {
    print('The counter is now: ${count()}');
    print('The double counter is now: ${doubleCount()}');
  });

  count
    ..set(1)
    ..set(2);
}
60
likes
0
pub points
57%
popularity

Publisher

verified publishermariuti.com

A simple State Management solution for Dart applications inspired by SolidJS

Repository (GitHub)
View/report issues

Topics

#state-management #signals

Documentation

Documentation

License

unknown (license)

Dependencies

meta

More

Packages that depend on solidart