All Projects → buunguyen → Redux Freeze

buunguyen / Redux Freeze

Licence: mit
Redux middleware that prevents state from being mutated anywhere in the app

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Redux Freeze

Redux Persist
persist and rehydrate a redux store
Stars: ✭ 11,738 (+5543.27%)
Mutual labels:  redux-middleware
Extcore
An extended core library for F#.
Stars: ✭ 172 (-17.31%)
Mutual labels:  immutable
React Tracker
React specific tracking library, Track user interaction with minimal API!
Stars: ✭ 191 (-8.17%)
Mutual labels:  redux-middleware
Redux Catch
Error catcher middleware for Redux reducers and sync middlewares
Stars: ✭ 150 (-27.88%)
Mutual labels:  redux-middleware
100 Lines Of Code Challenge Js
Write Everything in JavaScript under 100 Lines!!!😈
Stars: ✭ 157 (-24.52%)
Mutual labels:  immutable
Redux Callbag
🕺🕺Redux middleware for action side effects with callbag 👉< 1KB
Stars: ✭ 177 (-14.9%)
Mutual labels:  redux-middleware
Floyd
The Floyd programming language
Stars: ✭ 133 (-36.06%)
Mutual labels:  immutable
React Native Immutable List View
📜 Drop-in replacement for ListView, FlatList, and VirtualizedList.
Stars: ✭ 206 (-0.96%)
Mutual labels:  immutable
Immutableassign
Lightweight immutable helper that allows you to continue working with POJO (Plain Old JavaScript Object)
Stars: ✭ 161 (-22.6%)
Mutual labels:  immutable
Python Lenses
A python lens library for manipulating deeply nested immutable structures
Stars: ✭ 179 (-13.94%)
Mutual labels:  immutable
React Copy Write
✍️ Immutable state with a mutable API
Stars: ✭ 1,810 (+770.19%)
Mutual labels:  immutable
Redux Immutable
redux-immutable is used to create an equivalent function of Redux combineReducers that works with Immutable.js state.
Stars: ✭ 1,878 (+802.88%)
Mutual labels:  immutable
Redux Actions Assertions
Simplify testing of redux action and async action creators
Stars: ✭ 177 (-14.9%)
Mutual labels:  redux-middleware
Immer
Postmodern immutable and persistent data structures for C++ — value semantics at scale
Stars: ✭ 1,935 (+830.29%)
Mutual labels:  immutable
Ipmjs
Immutable Package Manager
Stars: ✭ 191 (-8.17%)
Mutual labels:  immutable
Monolite
Statically-typed structural-sharing tree modifier
Stars: ✭ 144 (-30.77%)
Mutual labels:  immutable
Immutadot
immutadot is a JavaScript library to deal with nested immutable structures.
Stars: ✭ 173 (-16.83%)
Mutual labels:  immutable
Vue Tetris
Use Vue, Vuex to code Tetris.使用 Vue, Vuex 做俄罗斯方块
Stars: ✭ 2,446 (+1075.96%)
Mutual labels:  immutable
Voik
♒︎ [WIP] An experimental ~distributed~ commit-log
Stars: ✭ 200 (-3.85%)
Mutual labels:  immutable
Pond
Immutable timeseries data structures built with Typescript
Stars: ✭ 180 (-13.46%)
Mutual labels:  immutable

redux-freeze

NPM

Build Status

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].