GH geometry not showing if no Rhino geometry is visible in viewport

Hi, I have recently developed a Grasshopper component (https://www.food4rhino.com/en/app/asquared-zero) which takes a bunch of Rhino meshes as inputs and produces engineering diagrams around it in the Rhino viewport.

I have noticed that, if the meshes in question are not visible directly in the viewport window (e.g., by panning/zooming them out), the GH generated geometry disappears altogether. One solution I have found is to generate simple geometries such as points in the area I am interested in to visualise the GH geometry without having it disappear.

I believe this is a bug, but can anyone tell me if they have already come across this and if there is an easy fix?

Thanks!

I had similar problem when I was developing robotic simulation plugin. are you overriding the preview method? In my case it worked when I get the preview via native mesh parameters as output. if you are using your own parameters then you must be careful with updating the bounding box of your geometry.