HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

TypeError: itemsSearching.value is not iterable with serverSide mode #358

Closed 4levels closed 6 months ago

4levels commented 6 months ago

Hi,

first of all, impressive project, very nice to see how it handles the complex datatable features in a modern Vue3 TS codebase.

When using the latest version with Vue 3.4.21 I'm getting the type error mentioned. It looks like the code assumes itemsSearching.value will exist in useTotalItems.ts:43, but when server side fetching is enabled, it seems to fail on that. I haven't verified or tested any further so far, just a first guess at this point.

PR #324 seems to address this as well between the other changes

4levels commented 6 months ago

Self-correcting here: most definitely related to the server-items-length prop not containing a valid / correct value :facepalm: