Good night, I'm working with ag-grid on a React project. I created a component that the user can enable column visibility, so far so good, it works perfectly. However, when running a function to set the visibility of all columns, the error mentioned in the title occurs. The function that does this is below. But another point is that this only happens if reactUi={true} is enabled, if disabled it works perfectly.
const handleOnChange = (e, i) => {
var columnApi = props.columnApi;
columnApi.setColumnVisible(e.target.value, e.target.checked);
};
const handleAllChange = (e) => {
var columnApi = props.columnApi;
for (let index = 0; index < columns.length; index++) {
columnApi.setColumnVisible(columns[index].colId, e.target.checked);
}
};