This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
updateIn
doesn't properly handle notSetValue
#113
Closed
Description
From @migueloller on Fri, 30 Nov 2018 21:50:42 GMT
What happened
updateIn
doesn't properly handle notSetValue
.
How to reproduce
const { updateIn } = require('immutable')
const original = { x: { y: { z: 123 } } }
const NOT_SET = { NOT_SET: true }
console.log(updateIn(original, ['x', 'y'], NOT_SET, val => NOT_SET)) // { x: { y: { NOT_SET: true } } }
Expected the log output to be { x: {} }
instead. Is this intended behavior?
Copied from original issue: immutable-js#1657