8000 mergeDeep behavior inconsistent across different versions · Issue #1574 · immutable-js/immutable-js · GitHub
[go: up one dir, main page]

Skip to content

mergeDeep behavior inconsistent across different versions  #1574

@habibtariq

Description

@habibtariq

I am getting inconsistent results for mergeDeep.
I am using version 4.0.0-rc.9

let obj1 = Immutable.fromJS({ x: [{ a: 1 }] });
let obj2 = Immutable.fromJS({ x: [{ b: 1 }] });

let result = obj1.mergeDeep(obj2);

// expected result { x: [{ a: 1, b: 1 }] }
// produced result { x: [{ a: 1 }, { b: 1 }] }

if i downgrade to verison 3.8.2 it seems to behave correctly. Has the desired behavior changed or is there some kind of bug with version 4.0.0-rc.9?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0