Package Exports
- redux-freeze
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (redux-freeze) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
redux-freeze
Redux middleware that freezes state from being mutated anywhere in the app. When mutation occurs, an error will be thrown by the runtime. This is useful during development mode to ensure that no part of the app accidentally mutates the state.
Usage
const middleware = []
if (__DEV__) {
const freeze = require('redux-freeze')
middleware.push(freeze)
}
Test
npm install
npm test