unstale

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 init

@unstale/cli 0.3.1 on npm

dash 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.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • href values on dcc.Location(refresh=True), html.Area, and html.Base now block javascript: URLs, matching html.A.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • React 16 is no longer an accepted value for REACT_VERSION or _set_react_version.

    4.5.0release notes

  • 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].

    4.5.0release notes

  • Streaming callbacks over HTTP require shared storage and fail during server setup without it; WebSocket streaming callbacks do not require shared storage.

    4.5.0release notes

  • Python 3.8 support is dropped; Python 3.9 is now the minimum supported version.

    4.4.0release notes

  • Removes the Dash() constructor argument; callback docstring exposure is now controlled via configure_mcp_server(expose_callback_docstrings=...).

    4.3.0release notes

  • Use ctx.websocket to access the websocket in a callback; it replaces ctx.get_websocket.

    4.2.0release notes

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.

    4.5.0release notes

  • 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.

    4.4.1release notes

Deprecations 1

  • Registration now warns for synchronous persistent no-output callbacks because they would tie up a worker thread.

    4.4.0release notes

New APIs and options 38

  • Supports social media meta tags in regular Dash apps using app.title, app.description, and app.image.

    4.5.0release notes

  • Adds a callback_key argument to build_cache_key.

    4.5.0release notes

  • Adds optional callback request payload compression; Dash decompresses gzip payloads on Flask, FastAPI, and Quart.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • Lets hosting platforms provide a signing secret shared by workers and pods for page, background, and stream tokens; server.secret_key still takes precedence.

    4.5.0release notes

  • Selects the shared-storage backend when the app does not pass shared_storage=; accepted values include local, none, diskcache paths, and Redis URLs.

    4.5.0release notes

  • Adds a prop controlling whether client-side navigation scrolls the page to the top; it defaults to True to preserve existing behavior.

    4.5.0release notes

  • Adds partial WebSocket prop reads by accepting a path argument.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • Adds experimental React 19 support, opt-in through REACT_VERSION=19.2.4; React 18.3.1 remains the default.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • Adds the websocket_max_workers argument to configure the shared thread pool for synchronous WebSocket callbacks; its default is 4.

    4.4.0release notes

  • MCP Tools now support background callbacks.

    4.3.0release notes

  • Formats callback results for LLM consumption, including rendered graphs and markdown tables.

    4.3.0release notes

  • Adds a way to represent callback-related data in an MCP-friendly format.

    4.3.0release notes

  • Adds a function to control which content the MCP server exposes. Only explicitly passed parameters are updated; omitted parameters retain their current value.

    4.3.0release notes

  • Adds an MCP Tool for getting a Dash component and executing callbacks.

    4.3.0release notes

  • Adds an MCP-related function decorator, alongside server routes and Streamable HTTP transport.

    4.3.0release notes

  • Adds support for exposing callbacks as MCP Tools.

    4.3.0release notes

  • MCP Tools now support pattern-matching callbacks.

    4.3.0release notes

  • Adds resources for exposing app layout, components, and pages.

    4.3.0release notes

  • Adds Streamable HTTP transport for the MCP server.

    4.3.0release notes

  • Callbacks can be persistent, supporting websocket callbacks and callbacks with no inputs or outputs.

    4.2.0release notes

  • Configures the CSRF header name.

    4.2.0release notes

  • Configures the CSRF cookie name.

    4.2.0release notes

  • Dash apps can use FastAPI or Quart backends, or an existing server implementation instead of being tied to Flask.

    4.2.0release notes

  • Install this extra to use Dash with a FastAPI backend.

    4.2.0release notes

  • Install this extra to use Dash with a Quart backend.

    4.2.0release notes

  • dcc.Graph config props now include displayNotifier.

    4.2.0release notes

  • The new prop lets users preserve the original option order during search.

    4.2.0release notes

  • Configures batching and debouncing for websocket set_props messages; the default is 5ms, and 0 disables it.

    4.2.0release notes

  • Websocket callback management gains heartbeat configuration and proper reconnection handling.

    4.2.0release notes

  • Callbacks can use persistent websocket connections for bidirectional live updates without polling.

    4.2.0release notes

  • Improves browser performance for apps with many pattern-matching callbacks and exposes an API endpoint to fetch the latest computeGraph call.

    4.1.0release notes

  • Adds a debounce prop to Dropdown.

    4.1.0release notes

  • Adds a backward-compatible alias for _Wildcard.

    4.1.0release notes

  • A new slider prop can disable the inputs rendered with sliders.

    4.0.0release notes

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.

    4.5.0release notes

  • Search performance is improved for large options lists.

    4.2.0release notes

  • Improves dropdown performance for large collections of options.

    4.1.0release notes

Behavior and default changes 8

  • Disables autocomplete in DatePickerSingle and DatePickerRange inputs.

    4.5.0release notes

  • hoverData and clickData include cursor pixel coordinates when hoveranywhere or clickanywhere is enabled in the figure.

    4.5.0release notes

  • 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.

    4.4.0release notes

  • 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.

    4.2.0release notes

  • DatePicker supports the Moment.js Y year token.

    4.1.0release notes

  • Allows the same date to be selected for both the start and end.

    4.1.0release notes

  • Dropdowns become searchable when focused, without needing to be opened first.

    4.1.0release notes

  • Dash core components have been redesigned.

    4.0.0release notes

Tooling 1

  • Static typing preserves wrapped callback signatures.

    4.2.0release notes

Fixes and other changes 43

  • Prevents duplicate callback registrations when running from a parent directory or importing an app module as the parent package.

    4.5.0release notes

  • Jupyter uses the proxied URL as its server URL so DASH_PROXY is honored by external URLs and inline iframes.

    4.5.0release notes

  • Fixes number input stepper behavior when only min is set.

    4.5.0release notes

  • Applying a Patch no longer reruns initial callbacks for components already on the page or wipes their persisted user-edited values.

    4.5.0release notes

  • Dragging multiple files into dcc.Upload with multiple=True now uploads all files rather than only the first.

    4.5.0release notes

  • 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.

    4.5.0release notes

  • Pages now handles percent-encoded path variables for layout and title correctly, and fixes 404 pages for paths with spaces or non-ASCII characters.

    4.5.0release notes

  • Path template matching no longer errors or backtracks badly for paths containing a newline.

    4.5.0release notes

  • FastAPI forwards reload scope options to Uvicorn when reloading.

    4.5.0release notes

  • Background callbacks now update set_props rather than replacing it.

    4.5.0release notes

  • FastAPI and Quart no longer open a WebSocket connection on every page load for apps without WebSocket callbacks; the socket opens only when needed.

    4.5.0release notes

  • Fixes a missing comm dependency.

    4.4.1release notes

  • 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.

    4.4.1release notes

  • The callback dispatch view is again exposed under this fully-qualified name, restoring Flask-WTF and Quart-WTF CSRF exemptions that use it.

    4.4.1release notes

  • All relayout changes are synced to the figure prop, preventing user interactions such as pan, zoom, and shape or annotation edits from being reverted by a subsequent Patch update.

    4.4.1release notes

  • Prevents UnboundLocalError when an async background callback using Celery or Diskcache raises PreventUpdate or another exception before user_callback_output is assigned.

    4.4.0release notes

  • Synchronous WebSocket callbacks now inherit ContextVar values bound by ASGI middleware because context is captured on the event-loop thread before submission.

    4.4.0release notes

  • Returns an empty list on non-Chrome webdrivers instead of None, allowing assertions such as checking for no logs to work consistently.

    4.4.0release notes

  • Fixes teardown hanging when stopping a ThreadedRunner for Quart apps.

    4.4.0release notes

  • Fixes updatemode="bothdates" not always being respected.

    4.4.0release notes

  • Prevents RuntimeError: No active request in context when a non-Dash path falls through to the FastAPI catch-all route.

    4.4.0release notes

  • Fixes context serialization for non-dict request args on the FastAPI and Quart backends.

    4.3.0release notes

  • Fixes a deadlock caused by middleware consuming the request body.

    4.3.0release notes

  • Responds to Streamable HTTP GET (SSE) requests with an empty event stream instead of 405 Method Not Allowed.

    4.3.0release notes

  • Fixes websockets using an incorrect path when deployed behind a proxy.

    4.3.0release notes

  • Dash falls back to background callback function names when source cannot be found.

    4.2.0release notes

  • Components passed from a parent object now remount correctly.

    4.2.0release notes

  • Selection is no longer cleared when custom action settings are used.

    4.2.0release notes

  • Removes an extra wrapper that caused styling and layout issues.

    4.2.0release notes

  • Fixes Patch updates for Graph figures and duplicate clicks not being sent by adding a timestamp to click event objects.

    4.2.0release notes

  • Fixes dcc.Input behavior when min or max is set to None.

    4.2.0release notes

  • Fixes the spinner not triggering when a callback Output uses the ALL wildcard.

    4.2.0release notes

  • Slider marks no longer become misaligned when some labels are empty strings.

    4.2.0release notes

  • Fixes inability to tab into dropdowns in Safari.

    4.2.0release notes

  • Filtering large datasets with component-based labels no longer crashes; virtualized rows use stable item keys.

    4.2.0release notes

  • Fixes websocket use in the same FastAPI server.

    4.2.0release notes

  • Fixes the ordering of FastAPI URL paths.

    4.2.0release notes

  • Fixes blueprint registration and double initialization when using flask run.

    4.2.0release notes

  • Patch objects can now be updated via set_props() in websocket callbacks.

    4.2.0release notes

  • Warnings now report the caller's location instead of internal Dash source lines.

    4.2.0release notes

  • Date pickers show the selected date when initially rendered in a hidden container.

    4.1.0release notes

  • Fixes multiselect dropdowns when labels are components.

    4.1.0release notes

  • Calendar CSS styles for selected dates outside the current month have been improved when show_outside_days=True.

    4.0.0release notes

dash 368 changes

Breaking changes 16

  • Adds a replacement for _dashprivate_layout.

    3.0.0release notes

  • Adds access to Dash context, the redux store, and loading mechanisms for component developers.

    3.0.0release notes

  • Removes component_loader; component libraries are now required to generate components with dash-generate-components.

    3.0.0release notes

  • Removes Dash.run_server in favor of Dash.run.

    3.0.0release notes

  • Exposes the path to the current component.

    3.0.0release notes

  • Exposes loading state for use outside a functional component.

    3.0.0release notes

  • Adds the ability to dispatch new actions on the Dash redux store.

    3.0.0release notes

  • Adds a selector that returns whether the component is loading.

    3.0.0release notes

  • Adds access to the Dash app redux store.

    3.0.0release notes

  • Removes the LogoutButton component.

    3.0.0release notes

  • Removes loading_state from component props.

    3.0.0release notes

  • Renames all long references to background.

    3.0.0release notes

  • Changes the default React version to 18.3.1.

    3.0.0release notes

  • Exposes stringifyId in window.dash_component_api.

    3.0.0release notes

  • Adds a component-developer API as an alternative to the removed _dashprivate props.

    3.0.0release notes

  • Adds a wrapper to render Dash components that are not part of the layout tree.

    3.0.0release notes

Deprecations 3

  • Deprecates dash_table.DataTable and points developers to the replacement in the dash[ag-grid] extra requirement.

    3.3.0release notes

  • Using defaultProps on functional components now emits a deprecation warning.

    3.0.0release notes

  • Adds a deprecation notice for strings refs.

    3.0.0release notes

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".

    3.4.0release notes

  • Adds a prop to dcc.Clipboard to customize the button contents before copying.

    3.4.0release notes

  • Adds a prop to dcc.Clipboard to customize the button contents after copying.

    3.4.0release notes

  • Adds hidden=True to the Dash pages callback.

    3.4.0release notes

  • Adds hidden as a configurable parameter for clientside callbacks.

    3.4.0release notes

  • Adds the hide_all_callbacks parameter to run().

    3.4.0release notes

  • Adds the playsInline prop to html.Video.

    3.4.0release notes

  • Exposes more types to provide better static typing options.

    3.4.0release notes

  • Adds api_endpoint to expose callback API endpoints at a provided path for direct execution without Dash.

    3.3.0release notes

  • Adds hidden to callback arguments so a callback can be hidden from the devtool callback graph.

    3.3.0release notes

  • Adds Patch support for clientside callbacks, along with support for side updates such as Running and SetProps.

    3.3.0release notes

  • Adds the dash[cloud] extra dependencies for Plotly cloud integrations.

    3.3.0release notes

  • Adds app_context to get_app, allowing routes to retrieve the current app.

    3.3.0release notes

  • Adds a server endpoint for monitoring and health checks.

    3.3.0release notes

  • Adds a position argument to hooks.devtool.

    3.3.0release notes

  • Adds optional callbacks, suppressing the missing-component-id warning for a single callback.

    3.3.0release notes

  • Adds Plotly cloud integrations, including a devtool API, a placeholder CLI, and a publish button.

    3.3.0release notes

  • Adds a publish button as part of Plotly cloud integrations.

    3.3.0release notes

  • Adds support for side updates, including Running and SetProps.

    3.3.0release notes

  • Adds an API to reverse the direction of the slider component.

    3.3.0release notes

  • Adds an option to include triggered inputs in cache key generation.

    3.0.0release notes

  • Allows a custom typing module to provide import statements copied to the top of component class definitions.

    3.0.0release notes

  • Allows a custom typing module to define custom component props and generate their types.

    3.0.0release notes

  • Adds a context API for accessing the redux store and loading mechanisms.

    3.0.0release notes

  • Adds -t and --custom-typing-module arguments for supplying custom Python prop typing definitions; defaults to dash_prop_typing.

    3.0.0release notes

  • Packages can register an entry point to run a module when a Dash app starts.

    3.0.0release notes

  • Adds a hook for defining a callback to be added to Dash apps.

    3.0.0release notes

  • Adds a hook for defining a clientside callback to be added to Dash apps.

    3.0.0release notes

  • Adds custom data called from the callback route to the user callback.

    3.0.0release notes

  • Adds a hook for receiving all callback errors.

    3.0.0release notes

  • Adds a hook for changing Dash.index_string.

    3.0.0release notes

  • Adds a hook that receives and must return the layout, allowing it to wrap or add to a Dash app layout.

    3.0.0release notes

  • Adds a hook for adding a Flask route to a Dash app.

    3.0.0release notes

  • Adds a hook called before a Dash app starts, with the app instance as its first argument.

    3.0.0release notes

  • Adds support for creating custom selectors for the connected redux store.

    3.0.0release notes

  • Generates PropType for Typescript components, enabling runtime prop validation in debug mode.

    3.0.0release notes

Performance 1

  • Improves performance of context components re-rendering.

    3.0.0release notes

Tooling 2

Fixes and other changes 10

  • Fixes devtools overflowing its container on version update.

    3.4.0release notes

  • Sets pointer-events to auto so tooltip content can be interacted with when targetable=True.

    3.4.0release notes

  • Fixes a stack overflow when circular callbacks are displayed in the devtool callback graph.

    3.3.0release notes

  • Fixes client-side callbacks with multiple Outputs when they return a single no_update.

    3.3.0release notes

  • Fixes compatibility with Python 3.14 by addressing the removal of pkgutil.find_loader.

    3.3.0release notes

  • Components added through set_props() can trigger related callback functions.

    3.3.0release notes

  • Fixes clientside pattern matching when an id contains a dot.

    3.0.0release notes

  • Fixes the Graph component becoming unresponsive when an invalid figure is passed.

    3.0.0release notes

  • Fixes the HOST variable when using conda.

    3.0.0release notes

  • Fixes the JupyterDash alive check.

    3.0.0release notes