Cesium polyline is not rendering, when state variable changes

Problem description reactjs - Cesium polyline is not rendering, when state variable changes - Stack Overflow