Closed mrossner closed 4 years ago
OK I'll close myself -- my state should change in onDropSuccess, I get it now. I guess you could do some local recordkeeping (no setState or mobx or redux or anything in onDraggedColumnChange. Really onDropSuccess should just pass the new column definitions ---
The whole point is this is supposed to be a callback that might cause state change and have you rerender the table (basically to make column order 'controlled and rememberable and changeable'). You call it inside a render() -- big no no