Skip to content

Cannot assign to read only property '0' of object '[object Array]' #19

@zaubara

Description

@zaubara

I'd like to update a value inside a deeply nested array (inside an immutable object), but that doesn't seem to work.
keyPath usually is somewhere along the lines of "data.common.languages.0.raw":
path.set(acc, curr.keyPath, curr.value)
Works in a non-immutable environment (ie. using object-path) fine; i'd expect that the immutable array inside the object isnt correctly extracted along the way?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions