bootstack.dev.reloadable#
- bootstack.dev.reloadable(func)#
Mark a builder function as a hot-reload unit (no-op in production).
Apply to a function that builds part of the UI by calling widgets into the active container:
@reloadable def build_dashboard(db): bs.Label("Dashboard", font="heading-lg") bs.DataTable(data_source=db)
In dev mode the framework records where the builder mounted; when its file is saved, only that region is torn down and rebuilt with the new code. Outside dev mode the function is returned unchanged.