mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-30 21:59:46 +02:00
style: format useEffect cleanup to satisfy biome
This commit is contained in:
parent
3621951f2a
commit
e38a0ff7c3
3 changed files with 18 additions and 3 deletions
|
|
@ -278,7 +278,12 @@ export function DocumentsTableShell({
|
|||
previewRafRef.current = undefined;
|
||||
});
|
||||
}, []);
|
||||
useEffect(() => () => { if (previewRafRef.current) cancelAnimationFrame(previewRafRef.current); }, []);
|
||||
useEffect(
|
||||
() => () => {
|
||||
if (previewRafRef.current) cancelAnimationFrame(previewRafRef.current);
|
||||
},
|
||||
[]
|
||||
);
|
||||
|
||||
const [deleteDoc, setDeleteDoc] = useState<Document | null>(null);
|
||||
const [isDeleting, setIsDeleting] = useState(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue