@auth0/quantum-charts 1.3.18 → 1.3.19

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.
@@ -60,7 +60,7 @@ export function LineChart(props) {
60
60
  React.useEffect(function () {
61
61
  setThreshold(thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]);
62
62
  setLineVisibility(__assign(__assign({}, ((thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]) && { thresholdControl: false })), lineVisibility));
63
- }, [thresholds, lineVisibility]);
63
+ }, [thresholds]); // ⚠️ removed lineVisibility to avoid infinite loop
64
64
  var handleLegendMouseEnter = function (e) {
65
65
  if (!lineVisibility[e.dataKey]) {
66
66
  setLineVisibility(__assign(__assign({}, lineVisibility), { hover: e.dataKey }));
@@ -99,7 +99,7 @@ function LineChart(props) {
99
99
  React.useEffect(function () {
100
100
  setThreshold(thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]);
101
101
  setLineVisibility(__assign(__assign({}, ((thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]) && { thresholdControl: false })), lineVisibility));
102
- }, [thresholds, lineVisibility]);
102
+ }, [thresholds]); // ⚠️ removed lineVisibility to avoid infinite loop
103
103
  var handleLegendMouseEnter = function (e) {
104
104
  if (!lineVisibility[e.dataKey]) {
105
105
  setLineVisibility(__assign(__assign({}, lineVisibility), { hover: e.dataKey }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auth0/quantum-charts",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "sideEffects": false,
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",