2.0.0 • Published 1 month ago

@nodata/redux-utils v2.0.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 month ago

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