Fix/stacked bar graph crash 6406 (#6554)

* fix: remove responsive prop from StackedBarGraph to prevent infinite loop

Fixes #6406

The 'responsive' prop on BarChart was conflicting with explicit width/height
props provided by AutoSizer, causing recharts' useElementOffset hook to
trigger an infinite re-render loop. This manifested as React Error #185
(Maximum update depth exceeded) when displaying stacked bar graphs with
many months of data.

Removing the redundant 'responsive' prop resolves the issue since explicit
dimensions are already provided by the Container component.

* docs: add release notes for #6406

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Salva <spenamedina@Salvas-MacBook-Pro.local>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
FictionFics
2026-01-08 17:30:18 +01:00
committed by GitHub
parent 4b8feb1dfc
commit 5673ca5049
2 changed files with 6 additions and 1 deletions

View File

@@ -209,7 +209,6 @@ export function StackedBarGraph({
<div>
{!compact && <div style={{ marginTop: '15px' }} />}
<BarChart
responsive
width={width}
height={height}
data={data.intervalData}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [FictionFics]
---
Remove responsive prop from StackedBarGraph to prevent infinite loop