Last Updated: 26 May 2022 12:18 by Vincent
Created on: 26 May 2022 12:18
Category: Grid
Type: Bug Report
The rendering of the Native Grid is not optimized when adding data to the beginning of the component

Describe the bug
In scenarios when we dynamically add data to the beginning of the Grid, the component re-renders elements whose re-rendering can be skipped.

To Reproduce

  1. Open this StackBlitz example
  2. Click on the "add row to beginning" button

Expected behavior
The onUpdated method should not be called when adding a new row to the beginning of the Grid. Instead, if you open the browser's console, the result is that "updating..." is logged three times.