@oliasoft-open-source/charts-library 3.5.1-beta-2 → 3.5.1-beta-4

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.
package/dist/index.js CHANGED
@@ -25407,7 +25407,7 @@ const useStoreChartStateInStorage = (memoState, persistenceId) => {
25407
25407
  const useUpdateAxesRanges = (range, dispatch) => {
25408
25408
  const prevRange = useRef(null);
25409
25409
  console.log("Range", range);
25410
- const updateAxesRanges = useCallback(() => {
25410
+ const updateAxesRanges = () => {
25411
25411
  console.log(
25412
25412
  range && range.x && range.y && !isEqual(range, prevRange.current)
25413
25413
  );
@@ -25424,7 +25424,7 @@ const useUpdateAxesRanges = (range, dispatch) => {
25424
25424
  });
25425
25425
  prevRange.current = range;
25426
25426
  }
25427
- }, [range]);
25427
+ };
25428
25428
  useEffect(() => {
25429
25429
  updateAxesRanges();
25430
25430
  }, [updateAxesRanges]);
@@ -25461,10 +25461,7 @@ const useChartState = ({
25461
25461
  } = memoOptions;
25462
25462
  useStoreChartStateInStorage(memoState, persistenceId);
25463
25463
  useToggleCustomLegendVisibility(memoState, memoOptions);
25464
- useUpdateAxesRanges(
25465
- range,
25466
- dispatch
25467
- );
25464
+ useUpdateAxesRanges(range, dispatch);
25468
25465
  useSaveInitialAxesRanges(chartRef, axes, generatedDatasets, dispatch);
25469
25466
  };
25470
25467
  const WORD_SEPARATOR = " ";