In Onshape your BOM is created and updated automatically while the assembly is designed. In fact, it is not just kept in sync, it is also a simultaneous way to edit the assembly, just like the sheet metal table in
Simultaneous Sheet Metal
and the configuration tables in
Simultaneous Configurations
.