Skip to content

Commit 4cbd6ff

Browse files
committed
updating attribute name from childrenLayoutHashes to dashChildrenUpdate
1 parent a96ab64 commit 4cbd6ff

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
99
- [#3265](https://github.com/plotly/dash/pull/3265) Fixed issue where the resize of graphs was cancelling others
1010

1111
## Added
12-
- [#3268](https://github.com/plotly/dash/pull/3268) Added the ability for component devs to subscribe to descendent updates by setting `childrenLayoutHashes = true` on the component, eg: `Tabs.childrenLayoutHashes = true`
12+
- [#3268](https://github.com/plotly/dash/pull/3268) Added the ability for component devs to subscribe to descendent updates by setting `dashChildrenUpdate = true` on the component, eg: `Tabs.dashChildrenUpdate = true`
1313

1414
## [3.0.2] - 2025-04-01
1515

components/dash-core-components/src/components/Tabs.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,4 @@ Tabs.propTypes = {
440440
persistence_type: PropTypes.oneOf(['local', 'session', 'memory']),
441441
};
442442

443-
Tabs.childrenLayoutHashes = true;
443+
Tabs.dashChildrenUpdate = true;

dash/dash-renderer/src/wrapper/selectors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {DashLayoutPath, DashComponent, BaseDashProps} from '../types/component';
22
import {
33
getComponentLayout,
44
stringifyPath,
5-
checkChildrenLayoutHashes
5+
checkDashChildrenUpdate
66
} from './wrapping';
77
import {pathOr} from 'ramda';
88

@@ -90,7 +90,7 @@ export const selectDashProps =
9090
const strPath = stringifyPath(componentPath);
9191

9292
let hash;
93-
if (checkChildrenLayoutHashes(c)) {
93+
if (checkDashChildrenUpdate(c)) {
9494
hash = determineChangedProps(state, strPath);
9595
} else {
9696
hash = state.layoutHashes[strPath];

dash/dash-renderer/src/wrapper/wrapping.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export function checkRenderTypeProp(componentDefinition: any) {
7373
);
7474
}
7575

76-
export function checkChildrenLayoutHashes(componentDefinition: any) {
76+
export function checkDashChildrenUpdate(componentDefinition: any) {
7777
return (
78-
'childrenLayoutHashes' in
78+
'dashChildrenUpdate' in
7979
pathOr(
8080
{},
8181
[componentDefinition?.namespace, componentDefinition?.type],

0 commit comments

Comments
 (0)