The behavior is, I click the next-page chevron and it loads the correct data from the database and goes to the next page, but it does not update the pagination text, which still reads 1-10 of 513
. If I use the prev-page and then next-page, so it reads from the cache, this problem does not occur. In a very similar component, the problem never occurs. The code looks like this:
QListComponent.vue
<v-data-table
:headers="headers"
:items="items"
:server-items-length="serverItemsLength"
:loading="loading"
@update:options="onOptionsUpdate"
>
...
props: {
items: Array,
...
And it is being used in two components:
BuildingListComponent.vue
<q-list-component :items="buildings">
...
props: {
buildings: Array as PropType<Building[]>,
...
and
EmployeeListComponent.vue
<q-list-component :items="employees">
...
props: {
employees: {
type: Array as PropType<Employee[]>,
required: true,
...
In the BuildingList, the pagination works fine. In the EmployeeList, it only works when reading from the cache. How can this possibly be?