3👍
✅
You can use a computed property for that, then the v-show will react to changes in the store;
computed: {
showPartialFiles() {
return (index) => {
return index <= this.$store.state.numberOfAssignmentCutoff - 1
}
}
}
Source:stackexchange.com