-
I have forked the editable data example and added an additional column to allow row deletion - see the code sandbox here. The deletion logic has a dependency on Steps to reproduce:
I realise I could use the lambda overload for Does anyone have any advice for my situation? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In the end I solved this problem by following the same pattern as is used for injecting the E.g. injecting functions to use at runtime. useTable({ .... }, update, remove, add) |
Beta Was this translation helpful? Give feedback.
In the end I solved this problem by following the same pattern as is used for injecting the
update
function inuseTable
.By doing this, I could remove
data
from the dependency array with no adverse effects, and clicking works correctly as a result.E.g. injecting functions to use at runtime.