I’m trying to update a variable that was create using useState() from within a column renderer function. It throws an error (screenshot attached). Here is a codesandbox to show the behavior after changing a value in a cell in column B, handsontable-useState-error - CodeSandbox. Can someone guide me as to what I’m doing wrong?
This does work. So the guidance on this would be you have to use a variable created with useState() for the data property on the HotTable component if you wish to make any other setState-type calls in the Grid hooks/events?
Thank you for the proposition. I can see a similar topic reported here https://github.com/handsontable/docs/issues/118
If you’d like us to cover some scenarios please feel free to add a comment