Quasar: all versions since Dec 6, 2017 (this commit)
v1: https://jsfiddle.net/bezanyu/945mbLns/
v0.15-17: https://jsfiddle.net/bezanyu/noqt956x/
See console output and compare column __index in originalData with table data.
__index property not change.
I found this problem when compare table rows with deep equality for detect user's changes. And found that all rows changed.
I not found usage __index property in code. Look like this map call may be removed.
Hi,
The __index prop is a helper. Helps to know at which index within your data you are. Useful (and just giving out a random example) for when using slots and you want to add a button to remove the row (you need to know at which index to remove).
I'm binding QTable data to Vuex and I get warnings about state being modified directly. I tracked it down to __index being added to the data.
Is it possible to stop this from happening?
Removed the addition of this property. The change will be available in "quasar" v1.4.4.
The __index prop is a helper. Helps to know at which index within your data you are. Useful (and just giving out a random example) for when using slots and you want to add a button to remove the row (you need to know at which index to remove).
This is my exact use case, and now it breaks after I upgraded quasar. :(
@rstoenescu Is there any alternative to get index inside slot?
Thanks
@pdanpdan
Awesome :tada:
Thanks
Most helpful comment
Removed the addition of this property. The change will be available in "quasar" v1.4.4.