Closed giiyms closed 1 year ago
The cookiecutter should definitely be updated to better support hot reload out of the box. (use classes instead of closure)
But in general, hot reload can be activated with just an arg (--hot-reload
)
Thanks that works great. Is there any way to hot reload the HTML/layout?
Yes, you just need to tight the UI definition into a function and have that function being called. We have that "on_server_reload" hook that will add a button in the footer (when using the vuetify UI stuff). But you can make your own "dev reload" button...
You can see an example here.
Got it. thanks again
Hello,
I see hot reload has recently be added to trame (2.3.0+)
Is hot reload integrated behind the scenes and activated with a passed argument or does the main.py file need to be updated in this cookiecutter?
Thanks