I believe the project I’m working on would benefit others. In this project, a cron job gets the latest bitcoin value every minute, from an CryptoCompare API call, and writes it to Sqlite. My simple Dash app then shows the latest 15 minutes. The whole thing is run on a commodity cloud VM. It’s on github.
My problem now (sorry) is that Dash is not behaving in what I believe is often the user’s expectation. When one refreshes a page in the browser one often expects the whole page to be rebuild. Of course, Dash and others don’t do this because they assume the user won’t want their current state deleted. It’s up for debate.
I read through the various ways one can deal with state in Dash and again, MAJOR HEADACHES! Which method is best for me? How long will it take me to learn each complicated technique?
So if I had an app.ResetOnPageReload = True then Dash could just reload the page, no matter how “expensive” when a user refreshes the whole page in their browser. Then later, if I want to fine tune behavior, I could let it default to false and wrap my head around those techniques of state.
Can this be done? Is there a gunicorn trick?