I'm experiencing an error with tabulator using ReactiveData in a React/redux Project using webpack. I have an array of objects being fed to the table constructor through the data key.
The table appears to work properly, however when I open a modal (modal is opened using a UI reducer), or navigate away from the page and back to the page (using hash-router), the table disappears and I receive the following error in the console.
I believe what is happening is that on re-render of the table, reactiveData is trying to re-add properties that it has already added to the array and this is causing the error.
I've tried re-assigning the array as a copy of itself upon reload, but this doesn't appear to have the desired effect as reactiveData no longer works (the table is not uploaded properly)
Any thoughts would be helpful. Thanks in advance!
tabulator.es2015.js:21383 Uncaught (in promise) TypeError: Cannot redefine property: push at Function.defineProperty () at ReactiveData../node_modules/tabulator-tables/dist/js/tabulator.es2015.js.ReactiveData.watchData (tabulator.es2015.js:21383) at RowManager../node_modules/tabulator-tables/dist/js/tabulator.es2015.js.RowManager._setDataActual (tabulator.es2015.js:3023) at tabulator.es2015.js:2998 at new Promise () at RowManager../node_modules/tabulator-tables/dist/js/tabulator.es2015.js.RowManager.setData (tabulator.es2015.js:2983) at Tabulator../node_modules/tabulator-tables/dist/js/tabulator.es2015.js.Tabulator._loadInitialData (tabulator.es2015.js:7610) at Tabulator../node_modules/tabulator-tables/dist/js/tabulator.es2015.js.Tabulator._create (tabulator.es2015.js:7377) at new Tabulator (tabulator.es2015.js:6858) at renderTable (main_table.js:697)