I would like to change my Dash app layout depending on a value that I read from a database (Firebase Realtime Database in my case) . Thus, it will look something like :
app = dash.Dash() //retreive database value if(databaseValue == thisValue): app.layout = this.layout else: app.layout = that.layout
After deploying the app on Heroku and running it for the first time, the layout is set and stays the same even if the database value is changed.
Do you have any ideas?