-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opt-out of array merging #79
Comments
What do you mean? If you merge A with B and both contain the array named C then the result will contain the array from B. Do you want the result to ignore the array from B and keep the array from A? |
I'd like to do something like this: let o = Immutable({arr: [{id: 2}]});
o = o.merge({arr: [{id: 3}]}, {mergeArray: false});
// o is {arr: [{id: 3}]} So the array from B should override the array from A. With the current implementation the result is |
This is my output when I test with 3.0.0 and 4.0.2:
|
Oh, you're of course totally right! Sorry for the annoyance – I mixed this up with another library. Everything works as expected. |
Is there a way to opt-out of the array merging?
The text was updated successfully, but these errors were encountered: