We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d0df5 commit 8cbe737Copy full SHA for 8cbe737
src/Tree/index.js
@@ -36,6 +36,13 @@ export default class Tree extends React.Component {
36
data: this.assignInternalProperties(clone(nextProps.data)),
37
});
38
}
39
+
40
+ // If zoom-specific props change -> rebind listener with new values
41
+ if (this.props.translate !== nextProps.translate ||
42
+ this.props.scaleExtent !== nextProps.scaleExtent) {
43
+ console.log(nextProps.translate, nextProps.scaleExtent);
44
+ this.bindZoomListener();
45
+ }
46
47
48
0 commit comments