How to listen for when a variable changes?

Hello, has there been any update with this? I am working on a project with a grafana timestream panel, and a custom built panel. From my custom panel, I am able to easily update grafana variables, and my timestream panel updates as expected. The timestream panel also updates variables based on user interaction, however I cannot monitor changes to these variables from my custom panel (wanting bi-directional rather than uni-directional communication). I can only see what the variable is sent to on page refresh in my custom panel.

@simones you mentioned that you were able to fix this by putting replaceVariables() inside of onChange() functions. Could you supply some sample code? I don’t understand how you were able to get this to work.

Thanks in advance