Refresh ReactJS Tanstack table after removing a record with action dropdown
I created a data table using ChadCN’s guide, which uses @tanstack/react-table. Each row has a dropdown menu with three dots, allowing the user to remove the row. The dropdown triggers a removeDomain server function that deletes the database entry by ID, and it works fine.
Refresh ReactJS Tanstack table after removing a record with action dropdown
I created a data table using ChadCN’s guide, which uses @tanstack/react-table. Each row has a dropdown menu with three dots, allowing the user to remove the row. The dropdown triggers a removeDomain server function that deletes the database entry by ID, and it works fine.
how to implement default checked rows to data table (tanstack and shadcn)?
I’m using data table component from shadcn https://ui.shadcn.com/docs/components/data-table which has tanstack table component. I have two types of data. First one is let’s say all data, second one is checked data. I get both data from backend and I want that my data table finds those checked data from all data and shows them as checked already.