mobx 0.0.20 copy "mobx: ^0.0.20" to clipboard
mobx: ^0.0.20 copied to clipboard

outdated

MobX is a library for reactively managing the state of your applications. Use the power of observables, actions, and reactions to supercharge your Dart and Flutter apps.

mobx.dart #

pub package Build Status Coverage Status

MobX for the Dart language.

Supercharge the state-management in your Dart apps with Transparent Functional Reactive Programming (TFRP)

Building blocks #

Observables #

  • Create Observable<T> via Observable<T>()
  • Create ObservableList<T>
    • observe and intercept
    • onBecomeObserved and onBecomeUnobserved
  • Create ObservableMap<K, T>
  • Atoms with Atom()

Computed Observables #

  • Create Computed<T> via Computed<T>()
  • 2-phase change propagation

Reactions #

  • Create Reaction with autorun()
    • with delay
  • Create Reaction with reaction()
    • with delay
    • with fireImmediately
  • Create Reaction with when()
    • when with timeout
    • when() returning Future<T>

Actions #

  • Create Action with Action()
  • Execute within runInAction
  • Create untracked-action with untracked<T>()
  • Create transaction with transaction<T>()

Cross cutting features #

  • Observability API for Observable and Computed
    • observe
    • intercept
    • onBecomeObserved
    • onBecomeUnobserved
  • Spying and Tracing
  • Exception handling and Error recovery
    • onReactionError on the context for catching global errors
    • onError handler for reactions
    • disableErrorBoundaries option for the reactive context
  • Debuggability

Public facing #

  • Logo
  • Documentation
  • Website (published on github.io)
1190
likes
0
pub points
99%
popularity

Publisher

verified publisherdart.pixelingene.com

MobX is a library for reactively managing the state of your applications. Use the power of observables, actions, and reactions to supercharge your Dart and Flutter apps.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on mobx