Skip to content
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
@Methuselah96

Description

@Methuselah96

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions