orbital_state 0.3.0 copy "orbital_state: ^0.3.0" to clipboard
orbital_state: ^0.3.0 copied to clipboard

Reactive state mixin and UI helpers for Orbital lifecycle objects.

0.3.0 #

  • listen on an already-disposed owner returns a cancelled handle instead of attaching a live subscription
  • make onDispose idempotent so the notifier is disposed exactly once
  • defer notifier teardown when the subject is disposed from inside one of its own listeners during a notification round

0.2.2 #

  • guard emit, watch and listen against calls made after the owning object has been disposed, fixing a ValueNotifier "used after being disposed" crash triggered by an in-flight async operation (e.g. a fetch resolving after the page was popped)

0.2.1 #

  • minor internal cleanup; no functional changes
  • depend on orbital_core ^0.2.1 and orbital_injector ^0.2.1 (dev)

0.2.0 #

  • initial release: StateMixin<T> reactive state mixin for OrbitalLifecycle objects, with emit, watch and listen
  • automatic listener cleanup on owner disposal via addDisposer
  • dispose the underlying ValueNotifier from onDispose
0
likes
150
points
306
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Reactive state mixin and UI helpers for Orbital lifecycle objects.

Repository (GitHub)

License

MIT (license)

Dependencies

flutter, orbital_core

More

Packages that depend on orbital_state