Skip to content

0.2.0 - Mar 23, 2022

Compare
Choose a tag to compare
@hoc081098 hoc081098 released this 22 Mar 18:45
· 114 commits to master since this release

https://pub.dev/packages/rxdart_ext/versions/0.2.0

  • utils:

    • Add DisposableMixin. This mixin adds an easy option to dispose Streams without having to store
      a StreamSubscription variable. (Thanks to Jop Middelkamp).
    • Add Equality typedef.
  • state_stream:

    • Rename StateStream.defaultEquals to StateStream.defaultEquality.
    • Add StateStream selectors (SelectorsStateStreamExtensions): StateStream.select, StateStream.select2
      to StateStream.select9
      and StateStream.selectMany.
      • Select a sub state slice from state stream. Inspirited
        by NgRx memoized selector
      • Selectors can compute derived data, to store the minimal possible state.
      • Selectors are efficient. A selector is not recomputed unless one of its arguments changes.
      • When using the select, select2 to select9, selectMany functions, keeps track of the latest arguments
        in which your selector function was invoked. Because selectors are pure functions, the last result can be
        returned when the arguments match without re-invoking your selector function. This can provide performance
        benefits, particularly with selectors that perform expensive computation. This practice is known as
        memoization.

What's Changed

New Contributors

Full Changelog: 0.1.3...0.2.0