Canvas rendering

so im doing a functionality outside of cesium that at the end sends cartesian3 to the map and updates the end position of a polyline ,
i got a validation in a useEffect that is handling the update but ,
only when the clock is runing it is updating ,
if its stall its stays until i drag the map
(i got some handlers from cesium that also updates it.)
is there a way to trigger the canvas update ?