@nodata/redux-utils
v2.0.0
Published
Provides multi-state memoization utils for redux.
Downloads
47
Readme
Redux Utils
Redux is commonly used for a single page application, and the best practice is to only use one state. This allows libraries as reselect to memoize selectors by using the references of a unique state.
In libraries relying on redux for the state management, a state is created for each instance, therefore reselect is not enough, as each call to a selector can target a different state, and thus invalidate the cache.
This library provides an automatic mechanism to allow memoization on multiple states.
Some tools to enforce typing with react and redux are also included in the library, but they are deprecated.
Installing
$ npm install @nodata/redux-utils