-
-
Notifications
You must be signed in to change notification settings - Fork 6
updateIn
doesn't properly handle notSetValue
#113
Comments
Correct behavior. |
@Methuselah96, how is this correct behavior? If the updater returns the "not set" value, then the value at that key should be unset (i.e., removed). |
For any future readers, explanation is here: immutable-js#1657 (comment) |
Based on the implementation, it seems that immutable-js/src/functional/updateIn.js Line 31 in 7a79603
I also do see, though, how immutable-js/src/functional/updateIn.js Lines 44 to 45 in 7a79603
I was just expecting setting something to |
From @migueloller on Fri, 30 Nov 2018 21:50:42 GMT
What happened
updateIn
doesn't properly handlenotSetValue
.How to reproduce
Expected the log output to be
{ x: {} }
instead. Is this intended behavior?Copied from original issue: immutable-js#1657
The text was updated successfully, but these errors were encountered: