Vue slots rowdata is not changing after data update

Vue slots rowdata is not changing after data update

alebat1alebat1 Posts: 2Questions: 0Answers: 0

Link to test case:
Stackblitz

Description of problem:
Hi,
I am using the datatables.net-vue3 but when I update the data in the table, the columns update correctly (the "Name" column in the test case), but the props data don't change ("Name prop" column). I have seen two similar discussions link1, link2 that are resolved with the 3.0.2 update, but they involve server-side rendering. In my case, it does not work. I don't understand what I'm doing wrong.
I would appreciate your help, thank you.

Replies

  • allanallan Posts: 63,602Questions: 1Answers: 10,486 Site admin

    Hi,

    You aren't doing anything wrong, it is just that the Vue integration doesn't support that particular operation at the moment. I'll be perfectly straight, I hadn't considered that particular operation before!

    It would require a deep watch on the columns (perhaps indeed all of the configuration properties), and on change destroy the table and reinitialize with the new options. I've added this to my list of things to do.

    Regards,
    Allan

  • alebat1alebat1 Posts: 2Questions: 0Answers: 0

    Hi Allan,

    Thank you for the clarification. I imagine adding support for this kind of operation could involve some significant changes under the hood. I’m glad to hear it’s something you’re considering for future updates.

    In the meantime, I'll explore possible workarounds to handle this on my side. Thanks again for your prompt response and for adding it to your list!

    Best regards,
    Alessandro

Sign In or Register to comment.