React plugin - props do not get updated when template variable changes


I have created a custom panel plugin in react and through the use of componentDidUpdate I can detect when there is a change in the time range options, but when you change a template variable nothing is triggered.

It seems like the props do not get updated, has anyone else come across this ?

I’ve resolved this by using the eventBus that is passed down to the panel props, you can then subscribe to refresh events.