xr 0.0.4 copy "xr: ^0.0.4" to clipboard
xr: ^0.0.4 copied to clipboard

XR is a simple state management library based on fundamental ideas of Computer Science

0.0.4 #

BREAKING CHANGES #

  • Reactor now ensures that its dependencies are Event, VoidEvent or Reactor. If not, it throws an ArgumentError

Additions #

  • Fixed errors in Readme.md

0.0.3 #

BREAKING CHANGES #

  • ReactorBuilder now takes a set of dependencies: dependsOn instead of single node

Additions #

  • Reactor and Event now keeps a list of old values as values
  • VoidEvent now keeps a count of happened() calls as count
  • Added AsyncReactor to handle async operations
  • Added lots of tests

0.0.2 #

BREAKING CHANGES #

  • Package now depends on flutter. But it is only referenced in src/flutter.dart file. So the core is still only dart
  • Complete different implementation of Event and Reaction
  • Reaction renamed to Reactor
  • By default, now both Event and Reactor only mark themselves changed, when newValue != existingValue

Additions #

  • Added optional debugName parameter for toString implementation for better debugging
  • Event now has a new method: forceSetValue that always updates value and always marks itself changed
  • Added dispose method to create temporary reactors
  • Added ReactorBuilder for creating widgets that rebuild when node changes
  • Added VoidEvent to represent an Event which has no value

Bug fixes #

  • Fixed a bug where scheduleMicrotask is not called when it should have been called

0.0.1 #

  • Initial version.
0
likes
140
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

XR is a simple state management library based on fundamental ideas of Computer Science

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on xr