You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deep merging two Maps with the same key name but different value types, no merge is done and the key's value remains unchanged. I would expect the value to be overwritten.
How to reproduce
var objWithObj = Immutable.fromJS({
items: {
'1': {
id: '1'
}
}
})
var objWithArray = Immutable.fromJS({
items: [{
id: '1'
}]
})
var mergedObj = ObjWithObj.mergeDeep(objWithArray)
The text was updated successfully, but these errors were encountered:
trevorlitsey
changed the title
Deep Merge with same key of different type (Map vs List) does not merge as expected
Deep Merge with same key of different value type (Map vs List) does not merge as expected
Jun 17, 2019
What happened
When deep merging two Maps with the same key name but different value types, no merge is done and the key's value remains unchanged. I would expect the value to be overwritten.
How to reproduce
The text was updated successfully, but these errors were encountered: