Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zaubara opened this issue Oct 24, 2017 · 3 comments
Open

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

zaubara opened this issue Oct 24, 2017 · 3 comments

Comments

@zaubara
Copy link

zaubara commented Oct 24, 2017

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 :)

@mariocasciaro
Copy link
Owner

Could you please send a pull request with a failing test case please?

@zaubara
Copy link
Author

zaubara commented Oct 27, 2017

Thanks - please have a look at #21

@mariocasciaro
Copy link
Owner

mariocasciaro commented Oct 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants