pypi / dash
dash
What changed in dash 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
26 breaking2 security4 deprecations74 new APIs and options4 performance8 behavior and defaults3 tooling53 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initdash 4106 changes
Breaking changes 10
Callbacks without cache_by no longer share results between requests with equal inputs; unread Diskcache results expire after a day or the configured expire interval, and callbacks with the same source no longer share a cache key.
FastAPI runs before_request hooks on every Dash route and sends non-None hook results as responses; FastAPI and Quart also run them on WebSocket handshakes.
href values on dcc.Location(refresh=True), html.Area, and html.Base now block javascript: URLs, matching html.A.
Moves plotly-cloud back to the optional dash[cloud] extra rather than making it a default install dependency, since it is unavailable on conda-forge.
React 16 is no longer an accepted value for REACT_VERSION or _set_react_version.
Shared storage and the multiplexed streaming downlink become opt-in; persistent LocalSharedStorage modes use the dash[shared_storage] extra, included by dash[diskcache] and dash[redis].
Streaming callbacks over HTTP require shared storage and fail during server setup without it; WebSocket streaming callbacks do not require shared storage.
Python 3.8 support is dropped; Python 3.9 is now the minimum supported version.
Removes the Dash() constructor argument; callback docstring exposure is now controlled via configure_mcp_server(expose_callback_docstrings=...).
Use ctx.websocket to access the websocket in a callback; it replaces ctx.get_websocket.
Security 2
Hook routes support async def on all backends; on FastAPI, hook routes and MCP can read the request, and hook routes no longer leak app context to callers.
Client-supplied job and cache handles are now HMAC-signed and bound to a per-page-load token, rejecting forged or replayed values that could terminate processes or access arbitrary result-cache entries.
Deprecations 1
Registration now warns for synchronous persistent no-output callbacks because they would tie up a worker thread.
New APIs and options 38
Supports social media meta tags in regular Dash apps using app.title, app.description, and app.image.
Adds a callback_key argument to build_cache_key.
Adds optional callback request payload compression; Dash decompresses gzip payloads on Flask, FastAPI, and Quart.
Adds cache_by and cache_maxsize options so apps with user-dependent layouts or callbacks can keep MCP cached tool descriptions and initial values per user.
Lets hosting platforms provide a signing secret shared by workers and pods for page, background, and stream tokens; server.secret_key still takes precedence.
Selects the shared-storage backend when the app does not pass shared_storage=; accepted values include local, none, diskcache paths, and Redis URLs.
Adds a prop controlling whether client-side navigation scrolls the page to the top; it defaults to True to preserve existing behavior.
Adds partial WebSocket prop reads by accepting a path argument.
Enables opt-in partial pattern matching for callback Input, Output, and State, allowing dictionary ID patterns to match component IDs with extra keys and combine with ALL or MATCH wildcards.
Adds experimental React 19 support, opt-in through REACT_VERSION=19.2.4; React 18.3.1 remains the default.
Adds a backend-agnostic cross-process state manager with key/value storage, optional TTL, and ordered replayable pub/sub, available lazily through the callback context.
An async generator callback can stream yielded values to the browser as produced; dash.Patch yields apply incrementally, and closing a tab cancels its streams.
Adds the
websocket_max_workersargument to configure the shared thread pool for synchronous WebSocket callbacks; its default is4.MCP Tools now support background callbacks.
Formats callback results for LLM consumption, including rendered graphs and markdown tables.
Adds a way to represent callback-related data in an MCP-friendly format.
Adds a function to control which content the MCP server exposes. Only explicitly passed parameters are updated; omitted parameters retain their current value.
Adds an MCP Tool for getting a Dash component and executing callbacks.
Adds an MCP-related function decorator, alongside server routes and Streamable HTTP transport.
Adds support for exposing callbacks as MCP Tools.
MCP Tools now support pattern-matching callbacks.
Adds resources for exposing app layout, components, and pages.
Adds Streamable HTTP transport for the MCP server.
Callbacks can be persistent, supporting websocket callbacks and callbacks with no inputs or outputs.
Configures the CSRF header name.
Configures the CSRF cookie name.
Dash apps can use FastAPI or Quart backends, or an existing server implementation instead of being tied to Flask.
Install this extra to use Dash with a FastAPI backend.
Install this extra to use Dash with a Quart backend.
dcc.Graph config props now include displayNotifier.
The new prop lets users preserve the original option order during search.
Configures batching and debouncing for websocket set_props messages; the default is 5ms, and 0 disables it.
Websocket callback management gains heartbeat configuration and proper reconnection handling.
Callbacks can use persistent websocket connections for bidirectional live updates without polling.
Improves browser performance for apps with many pattern-matching callbacks and exposes an API endpoint to fetch the latest computeGraph call.
Adds a debounce prop to Dropdown.
Adds a backward-compatible alias for _Wildcard.
A new slider prop can disable the inputs rendered with sliders.
Performance 3
An id-to-path index fixes quadratic slowdowns as matching components grow, making an ALL update over 400 components about four times faster with no app changes.
Search performance is improved for large options lists.
Improves dropdown performance for large collections of options.
Behavior and default changes 8
Disables autocomplete in DatePickerSingle and DatePickerRange inputs.
hoverData and clickData include cursor pixel coordinates when hoveranywhere or clickanywhere is enabled in the figure.
Async WebSocket callbacks run directly on the connection event loop, while synchronous callbacks use a shared thread pool, so long-lived callbacks no longer limit concurrent users.
MATCH is allowed in Input and State when the callback Output has no wildcards or only ALL wildcards; ALLSMALLER still requires a corresponding MATCH in an Output.
DatePicker supports the Moment.js Y year token.
Allows the same date to be selected for both the start and end.
Dropdowns become searchable when focused, without needing to be opened first.
Dash core components have been redesigned.
Tooling 1
Static typing preserves wrapped callback signatures.
Fixes and other changes 43
Prevents duplicate callback registrations when running from a parent directory or importing an app module as the parent package.
Jupyter uses the proxied URL as its server URL so DASH_PROXY is honored by external URLs and inline iframes.
Fixes number input stepper behavior when only min is set.
Applying a Patch no longer reruns initial callbacks for components already on the page or wipes their persisted user-edited values.
Dragging multiple files into dcc.Upload with multiple=True now uploads all files rather than only the first.
When an error handler returns None or a job is cancelled, Dash now handles the result as None if there are no outputs, avoiding InvalidCallbackReturnValue.
Pages now handles percent-encoded path variables for layout and title correctly, and fixes 404 pages for paths with spaces or non-ASCII characters.
Path template matching no longer errors or backtracks badly for paths containing a newline.
FastAPI forwards reload scope options to Uvicorn when reloading.
Background callbacks now update set_props rather than replacing it.
FastAPI and Quart no longer open a WebSocket connection on every page load for apps without WebSocket callbacks; the socket opens only when needed.
Fixes a missing comm dependency.
Dash pre-registers the running main module under its canonical import name, preventing callbacks from being registered twice when a script is re-executed through an import string.
The callback dispatch view is again exposed under this fully-qualified name, restoring Flask-WTF and Quart-WTF CSRF exemptions that use it.
All relayout changes are synced to the
figureprop, preventing user interactions such as pan, zoom, and shape or annotation edits from being reverted by a subsequent Patch update.Prevents
UnboundLocalErrorwhen an async background callback using Celery or Diskcache raisesPreventUpdateor another exception beforeuser_callback_outputis assigned.Synchronous WebSocket callbacks now inherit
ContextVarvalues bound by ASGI middleware because context is captured on the event-loop thread before submission.Returns an empty list on non-Chrome webdrivers instead of
None, allowing assertions such as checking for no logs to work consistently.Fixes teardown hanging when stopping a
ThreadedRunnerfor Quart apps.Fixes
updatemode="bothdates"not always being respected.Prevents
RuntimeError: No active request in contextwhen a non-Dash path falls through to the FastAPI catch-all route.Fixes context serialization for non-dict request args on the FastAPI and Quart backends.
Fixes a deadlock caused by middleware consuming the request body.
Responds to Streamable HTTP GET (SSE) requests with an empty event stream instead of 405 Method Not Allowed.
Fixes websockets using an incorrect path when deployed behind a proxy.
Dash falls back to background callback function names when source cannot be found.
Components passed from a parent object now remount correctly.
Selection is no longer cleared when custom action settings are used.
Removes an extra wrapper that caused styling and layout issues.
Fixes Patch updates for Graph figures and duplicate clicks not being sent by adding a timestamp to click event objects.
Fixes dcc.Input behavior when min or max is set to None.
Fixes the spinner not triggering when a callback Output uses the ALL wildcard.
Slider marks no longer become misaligned when some labels are empty strings.
Fixes inability to tab into dropdowns in Safari.
Filtering large datasets with component-based labels no longer crashes; virtualized rows use stable item keys.
Fixes websocket use in the same FastAPI server.
Fixes the ordering of FastAPI URL paths.
Fixes blueprint registration and double initialization when using flask run.
Patch objects can now be updated via set_props() in websocket callbacks.
Warnings now report the caller's location instead of internal Dash source lines.
Date pickers show the selected date when initially rendered in a hidden container.
Fixes multiselect dropdowns when labels are components.
Calendar CSS styles for selected dates outside the current month have been improved when show_outside_days=True.
dash 368 changes
Breaking changes 16
Adds a replacement for _dashprivate_layout.
Adds access to Dash context, the redux store, and loading mechanisms for component developers.
Removes component_loader; component libraries are now required to generate components with dash-generate-components.
Removes Dash.run_server in favor of Dash.run.
Exposes the path to the current component.
Exposes loading state for use outside a functional component.
Adds the ability to dispatch new actions on the Dash redux store.
Adds a selector that returns whether the component is loading.
Adds access to the Dash app redux store.
Removes the LogoutButton component.
Removes loading_state from component props.
Renames all long references to background.
Changes the default React version to 18.3.1.
Exposes stringifyId in window.dash_component_api.
Adds a component-developer API as an alternative to the removed _dashprivate props.
Adds a wrapper to render Dash components that are not part of the layout tree.
Deprecations 3
Deprecates dash_table.DataTable and points developers to the replacement in the dash[ag-grid] extra requirement.
Using defaultProps on functional components now emits a deprecation warning.
Adds a deprecation notice for strings refs.
New APIs and options 36
Adds an attributes dictionary for formatting script and link tags in the index, allowing values such as type="module" or type="importmap".
Adds a prop to dcc.Clipboard to customize the button contents before copying.
Adds a prop to dcc.Clipboard to customize the button contents after copying.
Adds hidden=True to the Dash pages callback.
Adds hidden as a configurable parameter for clientside callbacks.
Adds the hide_all_callbacks parameter to run().
Adds the playsInline prop to html.Video.
Exposes more types to provide better static typing options.
Adds api_endpoint to expose callback API endpoints at a provided path for direct execution without Dash.
Adds hidden to callback arguments so a callback can be hidden from the devtool callback graph.
Adds Patch support for clientside callbacks, along with support for side updates such as Running and SetProps.
Adds the dash[cloud] extra dependencies for Plotly cloud integrations.
Adds app_context to get_app, allowing routes to retrieve the current app.
Adds a server endpoint for monitoring and health checks.
Adds a position argument to hooks.devtool.
Adds optional callbacks, suppressing the missing-component-id warning for a single callback.
Adds Plotly cloud integrations, including a devtool API, a placeholder CLI, and a publish button.
Adds a publish button as part of Plotly cloud integrations.
Adds support for side updates, including Running and SetProps.
Adds an API to reverse the direction of the slider component.
Adds an option to include triggered inputs in cache key generation.
Allows a custom typing module to provide import statements copied to the top of component class definitions.
Allows a custom typing module to define custom component props and generate their types.
Adds a context API for accessing the redux store and loading mechanisms.
Adds -t and --custom-typing-module arguments for supplying custom Python prop typing definitions; defaults to dash_prop_typing.
Packages can register an entry point to run a module when a Dash app starts.
Adds a hook for defining a callback to be added to Dash apps.
Adds a hook for defining a clientside callback to be added to Dash apps.
Adds custom data called from the callback route to the user callback.
Adds a hook for receiving all callback errors.
Adds a hook for changing Dash.index_string.
Adds a hook that receives and must return the layout, allowing it to wrap or add to a Dash app layout.
Adds a hook for adding a Flask route to a Dash app.
Adds a hook called before a Dash app starts, with the app instance as its first argument.
Adds support for creating custom selectors for the connected redux store.
Generates PropType for Typescript components, enabling runtime prop validation in debug mode.
Performance 1
Improves performance of context components re-rendering.
Tooling 2
Adds a placeholder Plotly cloud CLI.
Adds static typing for component props in Python.
Fixes and other changes 10
Fixes devtools overflowing its container on version update.
Sets pointer-events to auto so tooltip content can be interacted with when targetable=True.
Fixes a stack overflow when circular callbacks are displayed in the devtool callback graph.
Fixes client-side callbacks with multiple Outputs when they return a single no_update.
Fixes compatibility with Python 3.14 by addressing the removal of pkgutil.find_loader.
Components added through set_props() can trigger related callback functions.
Fixes clientside pattern matching when an id contains a dot.
Fixes the Graph component becoming unresponsive when an invalid figure is passed.
Fixes the HOST variable when using conda.
Fixes the JupyterDash alive check.