Added
- #4026 Add
DASH_SECRET_KEYso a hosting platform can give every worker and pod the same signing secret for page, background and stream tokens without editing the app (server.secret_keystill wins and is not changed). - #4026 Add
DASH_SHARED_STORAGEto pick the shared-storage backend when the app does not passshared_storage=:local,none,diskcache:///abs/path, or aredis:///rediss://URL. - #4024 Add support for social media meta tags in regular Dash apps using
app.title,app.description, andapp.image. - #3976 Add a new
scrollToTopprop todcc.Linkto control whether the page scrolls to the top after client-side navigation. It defaults toTrueto preserve the existing behavior. Fixes #3974.
Changed
- #4026 Log a warning, once per process, when a streaming request is refused because its stream token failed verification, which on multi-worker deployments usually means the workers do not share a signing secret.
- #3987 Forward FastAPI reload scope options (
reload_dirs,reload_excludes, andreload_includes) to Uvicorn when reloading.
Fixed
- #4027 Support
async defhook routes (dash.hooks.route) on all backends, stop hook routes from leaking the app context to the caller, and let hook routes and MCP read the request on thefastapibackend. - #4053 Fix callbacks being registered twice under a reloader (e.g.
uvicorn --reload) whenDash()is given an explicitnameor is built by an app factory called from the main module. Fixes #3912. - #4023 Fix extra callback registrations when an app runs from the parent directory:
python app/app.py, where the script shares its folder's name, registered its callbacks twice, andpython app/main.pyimported a siblingapp/app.pyas the parent package and registered its callbacks too (regression introduced in 4.4.1 by #3883). Fixes #4011. - #3980 Fix the three
before_requesthooks (Dash._setup_serverand the pagesrouter_sync/router_async) publishing their "already done" guard flag before the setup work behind it had run. Under a multi-threaded WSGI worker such asgunicorn -k gthread(or under an ASGI worker for the async router), a second request arriving mid-setup could observe the flag already set, skip setup, then readregistered_paths/callback_map/ the pages router callback while they were still being registered - causing the first burst of component bundle requests after a restart to 500 withError loading dependency. "<lib>" is not a registered library, or the pages router to hitDuplicateCallbackwhen two workers raced past the guard. Each hook body now runs under a lock (threading.Lockfor the two sync hooks, anasyncio.Lockbound to the running loop for the async router) and only publishes the flag after all work completes. Fixes #3971. - #4057 Fixed background callbacks to update
set_propsinstead of replacing. Fixes #3104. - #3923 Fix a blank page and
SyntaxErrorin the browser when a dict component ID has a dot in one of its values. Fixes #3480. - #4014 Disable autocomplete in DatePickerSingle and DatePickerRange inputs. Fixes #4009.
- #4007 Fix page loads failing with a 500 error on Windows when Dash is imported from an extended-length (
\\?\) path, as in JupyterLab Desktop. Package resource paths are now joined with the OS separator instead of/. Fixes #3002.