Fix: Preserve chart state during zoom, pan, and date changes

- Added React.useMemo to memoize chartData and chartOptions to prevent unnecessary re-renders.
- Ensured chart zoom and pan states are maintained during interactions.
- Improved performance and user experience by avoiding chart
This commit is contained in:
ISA
2025-07-22 10:57:25 +02:00
parent ed9f693098
commit b7ca20f7c3
8 changed files with 71 additions and 14 deletions

View File

@@ -15,9 +15,15 @@
}
},
"rules": {
// deine Regeln hier
//any nur warung geben und kein error
// ✅ wirklich gefährliche Fehler
"no-undef": "error",
"no-unreachable": "error",
// ✅ alles andere nur als Warnung
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn"
"@typescript-eslint/no-unused-vars": "warn",
"react-hooks/exhaustive-deps": "warn",
"@next/next/no-img-element": "warn",
"react/no-unescaped-entities": "warn"
}
}