Figma recently launched the feature for a grid to automatically add/remove rows depending on the content that’s actually in there. Unfortunately it’s not working for me, and I haven’t seen anyone else talking about it.
Let’s say I have a component with a grid, and it has about 4 rows worth of cards inside. When I use the instance of this component and hide 1 row’s worth of cards, the grid initially shrinks in height to hug the remaining 3 rows visible. But a few minutes later the instance will pop back to the height of 4 rows, leaving an empty row. If I toggle hide/show on the cards it will force Figma to recalculate the height and hug again, but then the same thing will happen again 2 minutes later.
The inverse is also true; if I include hidden extra cards in my component, and turn them on in the instance, the grid will initially grow in height to accomodate the extra cards, but later shrink again to the original number of rows, causing the extra cards to overflow the frame.