mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-29 23:21:50 +00:00
Upgrade to react 18
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user