2.2.0-nullsafety.2 - Feb 9, 2021
Pre-release
Pre-release
hoc081098
released this
09 Feb 13:46
·
13 commits
to master
since this release
- Add
Selector
s:select
,select2
, ...,select9
andselectMany
.- Selectors can compute derived data, allowing Redux 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 reinvoking your selector function.
This can provide performance benefits, particularly with selectors that perform expensive computation.
This practice is known as memoization.