tomutable

0.1.3 • Public • Published

tomutable

Function to recursively convert a possibly immutable-js structure (at any depth) to a normal mutable object.

redux-dev-tools sometimes don't handle immutable state well. Just chain through this function and then monitor state as a regular object tree.

Install

npm i tomutable --save

Usage

import toMutable from 'tomutable'
 
...
 
const state = toMutable(maybeImmutableState)
 
// do stuff

Package Sidebar

Install

npm i tomutable

Weekly Downloads

0

Version

0.1.3

License

MIT

Last publish

Collaborators

  • cchamberlain