Hi!
I use quasar q-table with selected rows
<q-table
color=“primary”
:data=“serverData”
:columns=“columns”
row-key=“uuid”
@request=“request”
:loading=“loading”
:selected.sync=“selected”
selection=“multiple”
:pagination.sync=“serverPagination”
>
…
selected is defined as:
export default {
data () {
return {
…
selected: []
}
}
The table is updated every 10 seconds and the data in it can change. If I select some rows and after that the table is updated, then old data will remain in selected.
Why it happens? After all, sync implies two-way communication
How to solve this problem?
thank