프로젝트
GitHub에서 보기
buunguyen/redux-freeze
소개
Redux middleware that prevents state from being mutated anywhere in the app
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalredux-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
관련 프로젝트 살펴보기
불러오는 중…
