patricktran/react-table-hoc-draggable-columns

Uncaught type error

Teipo opened this issue · 2 comments

Teipo commented

Hi

  1. I am receiving an uncaught type error.

image

  1. I am also getting a memory leak error
    image

  2. I think some logging is active:
    image

Yes, I unfortunately left a couple of console.logs in by mistake. These will be removed in the next update.

Regarding your uncaught type error, can you please provide sample code or an example on codesandbox?

Teipo commented

Hi Patrick,

I had some issues when updating the order of columns in react-table via the function 'onDropSuccess', I tried setting my custom component state again and resetting the columns in react-table, basically re-rendering the table, and that's when the error occurred, even though the order and render was fine, I still got the error message.

I removed the setState({columns}) in my custom component when 'onDropSuccess' is called and the column order changed, and did not re-render the react-table component, then it works fine :)

So the error indeed was on my end.