Flickering effect with clipping with more planes

Hello everyone,
my goal is to close the clipped meshes with a plane of the same color of the mesh, and I reached it. But I have an issue with flickering.
Try these steps in the demo:

  1. Click on the clipping button
  2. Hide the planes
  3. Click on the negated checkbox

At this point as you can see the colored planes flickering. In point 1 this issue doesn’t appear.
Now if you click again on the negated checkbox the flickering is still there.
Is there a specific property to set? Thanks for the help.
Demo: colored-clipping - CodeSandbox

I resolve this issue. Here is the new code: colored-clipping - CodeSandbox