Trigger the objects Update

I have a function that checks every minute if the database info has been update, and if so, it execute another function that updates the dataframe.
After that i would like to update the objects, but if i do so with dcc.interval, i would have to do it every x seconds, and that is anoying since if someone is working in the dashboard and has any modal open, it will close it on refresh. I would like to reduce to the minimun possible the objects update. Is there a way that i could make a function that would force the objects update?

Hi @mamaral welcome!

This might be interesting, if I understand you correctly.

https://www.dash-extensions.com/components/websocket

1 Like

Hi,
Tkx for the reply. It sounds interesting, but do you know a way that could be used within the same app? I only need to make de callback to execute without user intervention.

Hello @mamaral,

The first link that @AIMPED gave operates from within the same application. :slight_smile: