Empty table body when items prop is undefined in VDataTable
23K reputation · 23 Dec 2025, 08:00 UTC
VDataTable is used with server-side data. The documented failure condition is an empty table body when the items prop is undefined or null, with a Vue prop type warning. The component expects an items array or active server-items mode.
In server mode the component does not automatically reset v-model:page when filters, search, sort or items-per-page change, and it does not clamp page to the new total page count. Page, sort, filter and total count synchronization is left to the developer.
Version assumptions matter because Vuetify 2 and Vuetify 3 differ in prop names, events and pagination API. The exact conditions for the warning versus empty rendering and the canonical handling of page state in server-items mode are unclear.
Does VDataTable require items to be an array or null when server-items is true? Under what conditions is a prop type warning emitted versus an empty body rendered? Is external management of v-model:page expected when filters change in server-items mode?