Integrating nanite meshes with InstancedStaticMeshComponents

I have an InstancedStaticMeshComponent that I have turned its static meshes to nanite, before it was nanite I was able to control the visibility of each of the static meshes through the InstanceUpdateCmdBuffer which records updates made on each instance and then apply them later on, after using nanite, the static meshes don’t disappear even when calling the same function.
Is there something missing that I should do to integrate nanite meshes, Does InstancedStaticMeshComponents even support Nanite?

So I have found that nanite static meshes don’t disappear even after registering a hide command in through the InstanceUpdateCmdBuffer, what worked with me is that I set its scale to 0 instead