computed: {
dataForVisibleKeys() {
const hiddenIndexes = this.get('hiddenIndexes');
const chartData = this.get('chartData');
return stripByHiddenKeys(chartData, hiddenIndexes);
},
coloursForVisibleKeys() {
const hiddenIndexes = this.get('hiddenIndexes');
const colourPalette = this.get('colourPalette');
return stripByHiddenKeys(colourPalette, hiddenIndexes);
},
},
<chart chartData={{dataForVisibleKeys}} colours={{coloursForVisibleKeys}} /><div> {{coloursForVisibleKeys}}<br> {{dataForVisibleKeys.length}} items</div><div> {{.colors}}<br> {{.chartData.length}} items</div>
You can see the values correctly being updated outside the component and not changing inside.
--
You received this message because you are subscribed to the Google Groups "Ractive.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ractive-js+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, Chris
To unsubscribe from this group and stop receiving emails from it, send an email to ractive-js+...@googlegroups.com.