EditableMesh flickering problems

I’ve created a basic procedural mesh system to create an EditableMesh that follows the path of a B-Spline, but the mesh seems to flicker between being visible and invisible when moving the camera around. I don’t know where to begin in terms of fixing this, so if anyone knows what the problem could be, please tell me!

like stated in the known issues:

They explain a way to fix it but i but i wasn’t able to figure out how. Reading the docs was also no help because of the issue below.

Ah okay, thanks for the info! The fix they’ve given is really vague and I think they should’ve reinforced it with an actual code example…