I’m actually developping a multi pages app which call a MongoDB database (with pymongo) and will call differents databases for each pages in the futur.
The data in the MongoDB database is updated everyday and depending of my futher use, the next databases will be updated maybe twice a day.
I tried to use dcc.Interval to make the app collecting data from the db every 10 sec (only for testing purpose) and it worked. However when I was switching to an another page, the dcc.Interval callback of the previous page stopped triggering. Whereas I want my graph and table to be updated even if the user go on another page.
I found a relative issue here :
To be able to update the data even in a background process, they speak about websocket. Should I use the dash-extensions websocket provided by @Emil or there is another way ?
Thank you and have a nice day.