When creating a component with a frame that houses elements that can be toggled on/off using boolean properties, there is a problem when turning all of those element off. The container frame that is set to hug contents no longer resizes to zero. This means that the autolayout setting on the main component don’t work properly as they consider the empty frame to still be there.
Figma used to have these ‘empty’ frames collapse to zero height if their sizing was set to hug, but this no longer seems to happen.
Many libraries built on this premise will now experience a lot of bugs and issues as the behaviour has changed.