How to update table's data in vue-table?
Hi, recently I started a new project and we're using vue for it. I wanted to use vue-table since I've used react-table in the past... but I can't figure out how to update the data inside the table. Here's a snippet:
As you can see I pass the data directly from the props. But when props.data changes the table doesn't update. I guess that's because the code is executed just once when the component is created, but doesn't useVueTable watch the changes on its options? I admit that I'm fairly new to Vue 3 so my understanding of the composition api may be wrong: in that case could anyone point out what's wrong?
As you can see I pass the data directly from the props. But when props.data changes the table doesn't update. I guess that's because the code is executed just once when the component is created, but doesn't useVueTable watch the changes on its options? I admit that I'm fairly new to Vue 3 so my understanding of the composition api may be wrong: in that case could anyone point out what's wrong?