I\'m dynamically rendering a grid with 3 elements per row. I\'m calculating the dimensions of each grid item (which will be the same for all grid items) with a ref callback