As an update for .NET 9, We now have access to a RendererInfo
property.
RendererInfo.Name
RendererInfo.IsInteractive
You can check RenderInfo.IsInteractive
to see if its true and handle parts of your code that only need to run after the pre-render etc.