Dash v3.0.0rc1
Pre-release
Pre-release
Added
- #2276 Python typing definition generation for components
__init__. - #3035
PropTypegeneration for Typescript components allowing runtime prop validation when in debug mode. - #3066 Adds
window.dash_component_apifor components developer as alternative to removed_dashprivateprops.- Add
dash_component_api.useDashContext,dash_component_api.DashContextto access the redux store and loading mechanisms.DashContext.componentPathhold the path to the current component.DashContext.useLoading(options?)selector to get a boolean if the component is loading.DashContext.isLoadingin case you need to use outside of a functional component.DashContext.useSelectorto create custom selectors for the connected redux store.DashContext.useStoreget the Dash app redux store.DashContext.useDispatchto dispatch new actions on the Dash redux store.
- Add
dash_component_api.getLayout(path)to replace_dashprivate_layout.
- Add
- #3029 Add pip install based hooks to Dash functionalities.
- Packages can add an
entry_pointswith keydash-hooksto theirsetup.pyfor a module to be run when a Dash app is started. - Add
dash.hooksmethods to hook into Dash apps.hooks.layouttakes the layout as argument and must return a layout, can be used to wrap or add to the layout of Dash apps.hooks.callbackdefines a callback to be added to Dash apps.hooks.clientside_callbackdefines a clientside callback to be added to Dash apps.hooks.setupis called before a Dash app is started to get an instance of the app as first argument.hooks.errorto receive all callback errors.hooks.indexto change theDash.index_string.hooks.routeto add a Flask route to the Dash app.
- Packages can add an
Removed
- #3066
loading_stateremoved from components props. - #3078 Deprecations removals
- Removed
dash.development.component_loader, components libraries now required to generate the components withdash-generate-components. Dash.run_serverhas been removed in favor ofDash.run.- Removed
dcc.LogoutButtoncomponent. - Renamed all
longreferences tobackground.
- Removed
Changed
- #3093 Changed default React version to 18.3.1
defaultPropson functional components now emits a deprecation warning.- Deprecation notice on strings refs.