Skip to content

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

License

Notifications You must be signed in to change notification settings

ember-redux/ember-redux-freeze

Repository files navigation

ember-redux-freeze

Travis NPM Ember

Installation

ember install ember-redux-freeze

Usage

//app/middleware/index.js
import thunk from 'redux-thunk';
import { freeze } from 'ember-redux-freeze';
import config from '../config/environment';

let middleware = [thunk];

if (config !== 'production') {
  middleware.push(freeze);
}

export default middleware;

To learn more about redux-freeze and how to use it visit the redux-freeze Github page.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published