Hi Dash Community:
Does anyone see the error that, if we add additional returned values in callback functions, and if the user doesn’t refresh the app, it will show errors as:
“Callback Function not found in output …” and “perhaps you forgot to prepend the “@”…”. Can someone please suggest a good way to solve this? or is there a way to auto refresh a stale page of the user? Thank you!
Hi @entropy_l !
If you change the code of the app, it must be reloaded in client side, the usual way is indeed that the user refresh the page.
If you want it automatic, you can use
But as the name suggests, it is meant to be a dev feature, as the client will send a request to the server at regular interval to check if something changed (every 3 sec by default, that can be modified with the parameter
Thank you so much Skiks. I will give a try!!
Thank you so much again @Skiks. This is indeed the solution. Also, want to mention that when I do this in Gunicorn, seems it is required to set up via environment variable.
However, is there a way that the web page is refreshed when the gunicorn command is run, without any file/code change? Thanks!
Sorry, above q is sorted, by the same trick. Thank you.