I am trying to get handsontable to work with websockets to allow multi-user editing.
I have a listener for changes to the selection and that works great, and I can set the border etc. as expected. But trying to update the cell using hot.setDataAtCell(e.row, e.column, 'test test', 'websocket')
does not update the table. I can only see it calling afterChange() which I find odd. I have even tried calling hot.render() after the change but that still does nothing
I have even tried simplifying it as much as this, but it does not update the cell at all. I assume I somehow need to add something to the dependencies array, but I am unsure what
useEffect(() => {
const hot = hotRef.current.hotInstance
hot.setDataAtCell(1, 1, 'test test', 'websocket')
}, [])