Complex nested path not working with 0.6.2
ReynerHL opened this issue · comments
In this code example, we are using vue-deepset 0.5.4 with vuex modules and v-model bindings to nested loops in templates. But if we upgrade to the 0.6.2 version, it does not work anymore.
https://codesandbox.io/s/vqmn4olqkl
Yes, we know we are always putting this package to the limits, but this is because we love it :)
seems to be an issue with topath as when using libraryModel[`books.${bookIndex}.fans.${fanIndex}.name`]
it works
I rolled back the toPath
and vueSet
methods to the older code and it resolved the issue. v0.6.3
published to npm. thanks for all your testing!
Thanks to you, for always being giving a great support to the issues we found.
Just for be clear, this kind of notation:
libraryModel[`books.${bookIndex}.fans.${fanIndex}.name`]
Will be fine for indexing arrays and access objects properties values as well?
Yeah it should be ok. I might export the supporting methods like toPath and get so devs can test them out
Thanks, we can close this issue now.