Upgrade to react 18

This commit is contained in:
Przemek Więch
2025-01-14 00:24:40 +01:00
parent 8f5a7cd8e8
commit f0bb5c1273
8 changed files with 365 additions and 254 deletions

View File

@@ -404,7 +404,7 @@ class ChartWrapper {
}
function usePrevious<T>(value: T): T | undefined {
const ref = useRef<T>();
const ref = useRef<T | undefined>(undefined);
useEffect(() => {
ref.current = value;
});