Skip to content

Function to recursively convert a possibly immutable object to a normal mutable object.

License

Notifications You must be signed in to change notification settings

cchamberlain/tomutable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Function to recursively convert a possibly immutable object to a normal mutable object.

Resources

License

Stars

Watchers

Forks

Packages

No packages published