TahaSh / vue-paginate

A simple vue.js plugin to paginate data
MIT License
593 stars 103 forks source link

support for later loading component #119

Open chaim0m opened 5 years ago

chaim0m commented 5 years ago

I was having issues using this with server side pagination since my data was not loading all at once. The main issue I solved here is that the initial load does not go to page -1 rif it has not loaded yet, this enables it to actually load the first page when the data comes in. Before my change it would not load the first page since the watcher list would set the page at -1 and even when the data cam in it would not change properly.

mikerogne commented 5 years ago

Ran into this issue myself. This solved it for me.