@gravity-ui/chartkit 4.23.0 → 4.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,9 +28,9 @@ const D3Widget = React.forwardRef(function D3Widget(props, forwardedRef) {
|
|
|
28
28
|
}, [handleResize]);
|
|
29
29
|
React.useImperativeHandle(forwardedRef, () => ({
|
|
30
30
|
reflow() {
|
|
31
|
-
|
|
31
|
+
debuncedHandleResize();
|
|
32
32
|
},
|
|
33
|
-
}), [
|
|
33
|
+
}), [debuncedHandleResize]);
|
|
34
34
|
React.useEffect(() => {
|
|
35
35
|
const selection = select(window);
|
|
36
36
|
// https://github.com/d3/d3-selection/blob/main/README.md#handling-events
|
|
@@ -43,8 +43,8 @@ const D3Widget = React.forwardRef(function D3Widget(props, forwardedRef) {
|
|
|
43
43
|
}, [debuncedHandleResize]);
|
|
44
44
|
React.useEffect(() => {
|
|
45
45
|
// dimensions initialize
|
|
46
|
-
|
|
47
|
-
}, [
|
|
46
|
+
debuncedHandleResize();
|
|
47
|
+
}, [debuncedHandleResize]);
|
|
48
48
|
if (validatedData.current !== data) {
|
|
49
49
|
validateData(data);
|
|
50
50
|
validatedData.current = data;
|
package/package.json
CHANGED