-
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
To clarify, I am not adding new data, I am modifying data of the table, using spread and creating a new array. |
Beta Was this translation helpful? Give feedback.
-
can bump topics here? |
Beta Was this translation helpful? Give feedback.
-
@tannerlinsley |
Beta Was this translation helpful? Give feedback.
-
the bug can easily be seen here: git clone https://github.com/omridevk/node-cleaner
cd node-cleaner
git checkout add_delete_status_for_projects
yarn
yarn dev-demo then just delete any of the projects the app finds (it won't delete anything you can see in the code, in demo mode it just console.log instead of actually deleting any folders). but then you can see that I update the deleted row property I'd rather not do a direct mutation on the data if it is possible to avoid that. |
Beta Was this translation helpful? Give feedback.
-
k, I think I found a solution:
and there I can adjust the id to be my unique key in my data so when I change it property on it the table state is kept. |
Beta Was this translation helpful? Give feedback.
-
@omridevk |
Beta Was this translation helpful? Give feedback.
k, I think I found a solution:
using getRowId,
then pass it a callback
and there I can adjust the id to be my unique key in my data so when I change it property on it the table state is kept.
wish it was easier to find it.