kouts / vue-dataset

A set of Vue.js components to display datasets (lists) with filtering, paging, and sorting capabilities!
https://next--vue-dataset-demo.netlify.app/
MIT License
220 stars 26 forks source link

Dynamic data import sets pager to last page #130

Open potofcoffee opened 1 year ago

potofcoffee commented 1 year ago

I'm using dataset in a component that dynamically loads in data in its created() method. This means, the data array is initially empty and gets filled once the AJAX call has finished. Dataset correctly displays the data, however, if there is more than one page, it always jumps to the last page. Is there a way to fix this?

Alternatively, is there a way to programmatically set the current page?

kouts commented 1 year ago

Hey @potofcoffee, normally the dataset should set the current page to 1 after the data updates. Which version of Vue are you using?