I took insperation from https://openlayers.org/en/latest/apidoc/module-ol_source_Vector-VectorSource.html where they use
vectorSource.addFeatures(vectorSource.