I'm trying to send a request to the function onGridRowsUpdated with my parameters but it is throwing me the error of
Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
I wonder what is the issue because I'm calling the parameters correctly.
  onGridRowsUpdated = ({ fromRow, toRow, updated }) => {
    this.setState(state => {
      const rows = state.rows.slice();
      for (let i = fromRow; i <= toRow; i++) {
        console.log(fromRow, toRow, updated)
        rows[i] = { ...rows[i], ...updated };
      }
      this.definedColumn();
      return { rows };
    });
  };
render() {
    this.onGridRowsUpdated(1, 1, {D: '26'});
}
 
    