1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix missing dependency in effect

This commit is contained in:
Bill Thornton 2024-02-15 11:28:10 -05:00
parent 9fa0b4f5b2
commit 2d667cabba

View file

@ -11,7 +11,7 @@ export function usePrevious<T>(value: T, initialValue?: T): T | undefined {
useEffect(() => {
ref.current = value;
});
}, [ value ]);
return ref.current;
}