0.2.0 - Mar 23, 2022
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
aStreamSubscription
variable. (Thanks to Jop Middelkamp). - Add
Equality
typedef.
- Add
-
state_stream:
- Rename
StateStream.defaultEquals
toStateStream.defaultEquality
. - Add
StateStream
selectors (SelectorsStateStreamExtensions
):StateStream.select
,StateStream.select2
toStateStream.select9
andStateStream.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
toselect9
,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.
- Select a sub state slice from state stream. Inspirited
- Rename
What's Changed
- Feature/rx disposable by @jopmiddelkamp in #52
- Update actions/checkout action to v3 by @renovate in #54
- feat(selectors) by @hoc081098 in #56
New Contributors
- @jopmiddelkamp made their first contribution in #52
Full Changelog: 0.1.3...0.2.0