Hi,
see the following example:
Demo
The example reproduces an issue with commandColumn not defined in grid's commandClick event handler. When example is loaded, click on any delete button and alert will show the commandColumn as expected. Afterwards click the test button and try any delete button again. Now, the alert shows "undefined" for commandColumn.
Please confirm and how can I fix it?
This blocks me a lot. I want to use the command column but any state change like a fetch call with nextjs/SWR breaks the command column.
EDIT: Seems to be a general problem. "grid.addRecord()" doesn't work after state change, too: "TypeError: col.edit.create is not a function"
Regards,
Steffen