Duplicate DOM elements in edit mode

Hi, I am developing a plugin for a fork of grafana 9.4.7 (stuck on this version for the time being…).
I am embedding React Flow into the panel and everything works as expected. But when I enter the edit mode of the panel, Grafana keeps the dashboard hidden in the DOM while presenting the edit screen. I think this causes all sorts of troubles with ids/classnames, not only in React Flow. The issue does not arise when you visit the edit url directly, which further reinforces my suspicion. Can I somehow circumvent this, can I tell grafana not to cache the dashboard in the background?

Hi @yamahari1 sadly we don’t actively support that Grafana version anymore and additionally the whole architecture around rendering dashboards and panels recently changed so no more changes are done to old versions in that regard.

Maybe you can share what you are trying to do, plugins should not depend on the state of the dashboard or any of its dom elements to work so I wonder if there’s something that perhaps you can do better and avoid this problem altogether.