Cannot assign to read only property '0' of object '[object Array]'
zaubara opened this issue · comments
Martin Puza commented
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 :)
Mario Casciaro commented
Could you please send a pull request with a failing test case please?
Martin Puza commented
Thanks - please have a look at #21
Mario Casciaro commented
That's awesome, thanks!
…On Oct 27, 2017 10:16 PM, "Martin Puza" ***@***.***> wrote:
Thanks - please have a look at #21
<#21>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGbZ6ITIk14o1y8_wiYsfG33iLSxGkoks5swkhHgaJpZM4QEaBT>
.