Refresh the dashboard from the react panel plugin

There is any way to refresh dashboard from react panel plugin?

Hi! Could you share some more details on your use case? Why do you want to refresh the dashboard?

Hi.

I develop my custom plugin in which we can send some value to the influx database. After pressing the send button, I would like the other plugins that display data from the database to be refreshed and show the current value.

Hm. I don’t believe think this is supported. My gut feeling tells me that full dashboard refresh is probably not something we expose to plugins, as it could potentially lead to poor experience. If this is something you’d still like to see, I’d recommend that you submit an enhancement request.

Ok, thanks for help.

Did some research, and it seems like this was possible in Angular plugins by emitting a refresh event, but I don’t see the event emitter being exposed to React plugins. I’ll continue digging, and will update this topic once I know more.

2 Likes

Looks like event handling is still being worked on for React plugins:

I think I need some help. I don’t quite know how to use Event Bus in my component. The “@ grafana / data” module has no exported member similar to EventBus or EventBusSrv.