プロジェクト
概要
Redux middleware that prevents state from being mutated anywhere in the app
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルredux-freeze
Redux middleware that prevents 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
// Only includes in DEV mode
if (__DEV__) {
const freeze = require('redux-freeze')
reduxMiddleware.push(freeze)
}
Test
npm install
npm test
Changes
0.1.7
- Fix bug state not frozen before the first dispatch
0.1.5
- Fix bug error is thrown when an object in the state has null prototype
0.1.4
- Fix bug error is thrown when the state is not freezable
0.1.3
- Fix bug result of the middleware is not returned
関連プロジェクトを探す
読み込み中…
