Description
Current Situation
Currently, if you want to get auto-reloading you need to configure an application and run it using a production-grade web server like Uvicorn and follow their directions on how to set up auto-reloading. It would be great if the reactpy.run
function did that by default.
Proposed Actions
First, decide if we should pass a new DebugOptions
object to the run
function or simply use **kwargs
. The former aligns with the configure
interface, but the latter may help delineate between the two.
Add reload=True
settings for the run
function as well as BackendImplementation.create_development_app
. It's possible that a reload_dirs
parameter could make sense here as well, but if the interfaces for specifying what directories to watch varies significantly between the backends we might choose not to do that. It may also be worth adding a
Then, it's just a question of making this happen for each backend development server. Since the all the async frameworks run on Uvicorn, that should be fairly straightforward, for Flask/Tornado that will require some investigation.