ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

[Feature request] Cancel ajax request #169

Closed alfonsobries closed 6 years ago

alfonsobries commented 6 years ago

Sometimes when you have a custom filter (let say a search form) maybe you want some kind of google like live refresh while the user type the search, in this cases when i refresh the data it make multiple request to server,

Im thinkin in a (maybe) cancel method to cancel the current request when the params change and you want to update the ajax request.

ratiw commented 6 years ago

I don't think that can be done in ES6 at the moment. I also do not plan to do anything more on this repo as I've already shifted to Vuetable-2. Unless someone will submit PR for new feature, no new feature will get added.

alfonsobries commented 6 years ago

Im sorry im thinking about the vuetable-2, i made a mistake when google the package, but as i see in vuetable-2 you use axios, so its possible to cancel the request: https://github.com/mzabriskie/axios#cancellation

I will try to do do a pull request with this feature, thanks