'MapBox change feature properties of Vector map

I am modifying features from layer and would like to use similar to "setData()" to a vector layer? From googling some places i read that its not possible to use that setData function to vectors and only to geojsons.

What i am doing is first i get the feature properties from layer

let features = this.map.queryRenderedFeatures({layers:["maakunta-fills"]}).map(item=>{
        const copied = {...item}
        copied.properties.modified = "some_modified_value"
        return copied;
    });

and then my wish is i can do something like : this.map.getSource("sourcename").setData(features) But mapbox will throw error by saying setData is not function (i assume because this "sourcename" is a vector tile. Which looks like this:

this.map.addSource("maakunta", {
            type: "vector",
            tiles: [tileServiceURL + "base.maakunta/{z}/{x}/{y}.pbf"],
            promoteId: "id"
        });


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source