bhaveshpatel200 / vue3-datatable

vue3-datatable is a powerful component for creating dynamic and customizable data tables. It supports large amounts of data, sorting, pagination, and filtering and highly customizable
MIT License
100 stars 11 forks source link

redraw datatable when action is performed #18

Closed hamza-dev1 closed 5 months ago

hamza-dev1 commented 5 months ago

Hi, how i can reload data in datatable after deleting a row or making any change in the server?

Thanks

hamza-dev1 commented 5 months ago

I solved the issue. After performing update operation for 1 single column i'm calling the same endpoint that returns all data, i know that it isn't the best solution and will impact performance. I would love to hear any other suggestions! Thanks

bhaveshpatel200 commented 5 months ago

HI,

If you are using server side rendering then its good to call same endpoint to redraw updated data after updating single row data.

and if you are using client side rendering then you can update that row from all data variables which you have passed as params instead of calling same endpoints.

because here if server side getting only page wise data which is not taking time, and client side getting all data in single api call which getting slow down to call api every time.