Why do I need to dispose Geometry whenever I update LineSegmentsGeometry?

Whenever I update the position and color arrays for a lineSegmentsGeometry, It fails to render all the lines. It only renders the first segment. I end up having to do the following to make it render all the segments:


			this.geometry.dispose();
			this.geometry = new LineSegmentsGeometry();
			this.mesh.geometry = this.geometry;
			
			this.geometry.setPositions(positions);
			this.geometry.setColors(colors);

Why do I have to dispose it? Is there a way to refresh it? I have to do that in order to make it render all the line segments, and this seems like a bug.