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:
parent
9fa0b4f5b2
commit
2d667cabba
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export function usePrevious<T>(value: T, initialValue?: T): T | undefined {
|
|||
|
||||
useEffect(() => {
|
||||
ref.current = value;
|
||||
});
|
||||
}, [ value ]);
|
||||
|
||||
return ref.current;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue