-
Notifications
You must be signed in to change notification settings - Fork 195
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
Issue regarding null values #244
Comments
Seems like a problem in the seamless-immutable/src/seamless-immutable.js Line 405 in 281c344
So if the result from the merger is not truthy it will go to the else and use the value from |
@crudh Ok, but it seem like a major issue, since anyone using null values can have issues like this and its rather hard to track |
@donnanicolas yeah, I agree. PR #248 should fix it. |
@crudh Thanks!! will update as soon as the PR is merged!! (I "reviewed" it and it seems great, but I don't know much about the code) |
This is fixed now, a release will be done soon. |
We have an issue with an special merger. We need to keep the properties even if the source object has that property as
undefined
, so we use a custom merger, with almost all values they work ok, but when the original object has a value ofnull
, the resulting property is set to undefined.Here is the code running on runkit https://runkit.com/donnanicolas/seamless-immutable-null
We don't know why this happens
The text was updated successfully, but these errors were encountered: