In my React application, I am using jquery Datatable table.
Initially the table loads fine. Whenever I am trying to override the data with a new data, it is throwing the error "Invariant Violation: processUpdates(): Unable to find child 10 of element. This probably means the DOM was unexpectedly mutated.."
I searched on this issue. What I understood is since the datatable plugin is directly mutating the DOM, React is getting confused on state change. One solution I got is call the datatable on willComponentUpdate. But, it is not working for me. Not sure on how to solve this issue.
Thanks for helping.
$('#topicsTable')
.addClass('initialized')
.dataTable({
order: [
[4, "desc"]
],
columnDefs: [{
targets: [-1],
className: 'hidden'
}]
});
