So I am having trouble updating in the reducer with Immutable.js.
So lets say I have a an initial state in my reducer as so:
Immutable.Map(action.someData)
where someData is a JSON, I received from a server:
someData: {
contactInfo: {phoneNumber: 123-1253}
address: 101 e street
family: {
husband: "Bob"
wife: "Sally"
}
}
If I wanted to update the family.husband, how would I go on to do it?
since someData is just a regular object, does this not allow me to use setIn method?