rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.37k stars 194 forks source link

Merge object with update property #141

Closed L3V147H4N closed 7 years ago

L3V147H4N commented 8 years ago

is there a way to merge an object with the same prop as an immutable object?

ex:

state.merge({
  update: 'something'
});

Immutable already has an update prop and when doing state.asMutable(), the update prop is gone

rtfeldman commented 7 years ago

There is now! See https://github.com/rtfeldman/seamless-immutable/pull/158