Commit c9e3152
fix: correct PivotData memoization to detect data changes
**Root Cause Identified:**
- pivotDataKey only checked dataLength, not actual data changes
- Same length data (1000 records) resulted in no PivotData recreation
- Old data accumulated without cleanup for 800+ refreshes
**Fix:**
- Include actual data reference in pivotDataKey computation
- Now detects when new data array is generated (same length, different content)
- Forces PivotData recreation and cleanup on each refresh
**Expected Result:**
Memory should reset to baseline (~43MB) on each refresh instead of accumulating
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b91d6f1 commit c9e3152
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
0 commit comments