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:
@@ -14,15 +14,22 @@
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"es2021": true
|
||||
},
|
||||
"globals": {
|
||||
"JSX": "readonly",
|
||||
"NodeJS": "readonly"
|
||||
},
|
||||
"rules": {
|
||||
// ✅ wirklich gefährliche Fehler
|
||||
"no-undef": "error",
|
||||
"no-undef": "off",
|
||||
"no-unreachable": "error",
|
||||
|
||||
// ✅ alles andere nur als Warnung
|
||||
"@typescript-eslint/no-explicit-any": "warn",
|
||||
"@typescript-eslint/no-unused-vars": "warn",
|
||||
"react-hooks/exhaustive-deps": "warn",
|
||||
"react/react-in-jsx-scope": "off",
|
||||
"@next/next/no-img-element": "warn",
|
||||
"react/no-unescaped-entities": "warn"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user