Open joseucarvajal opened 7 years ago
Hi @joseucarvajal! Unfortunately, this library does not support mutable objects other than objects and arrays, but it would be nice to support the other native ones like Map
and Set
. Would you like to contribute to add support for it?
I am mutating my mapProperty from my state, and redux-immutable-state-invariant, does not inform mutation to me. Mutating state line:
state.mapRecursosIndxByCtx.set("asdf", new ZRecursoViewModel());
mapRecursosIndxByCtx property is defined as follows:
const initialState: ZAplication.ZAplicationState = { mapRecursosIndxByCtx: new Map<string, ZRecursoViewModel>() }
It works when i try to mutate another properties but mapRecursosIndxByCtx property doesn't works.
Am i right?.
Thanks in advance.