mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +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;
|
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 [deleteDoc, setDeleteDoc] = useState<Document | null>(null);
|
||||||
const [isDeleting, setIsDeleting] = useState(false);
|
const [isDeleting, setIsDeleting] = useState(false);
|
||||||
|
|
|
||||||
|
|
@ -827,7 +827,12 @@ const ComposerAction: FC<ComposerActionProps> = ({ isBlockedByOtherUser = false
|
||||||
toolsRafRef.current = undefined;
|
toolsRafRef.current = undefined;
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
useEffect(() => () => { if (toolsRafRef.current) cancelAnimationFrame(toolsRafRef.current); }, []);
|
useEffect(
|
||||||
|
() => () => {
|
||||||
|
if (toolsRafRef.current) cancelAnimationFrame(toolsRafRef.current);
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
const isComposerTextEmpty = useAuiState(({ composer }) => {
|
const isComposerTextEmpty = useAuiState(({ composer }) => {
|
||||||
const text = composer.text?.trim() || "";
|
const text = composer.text?.trim() || "";
|
||||||
return text.length === 0;
|
return text.length === 0;
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,12 @@ export function InboxSidebarContent({
|
||||||
connectorRafRef.current = undefined;
|
connectorRafRef.current = undefined;
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
useEffect(() => () => { if (connectorRafRef.current) cancelAnimationFrame(connectorRafRef.current); }, []);
|
useEffect(
|
||||||
|
() => () => {
|
||||||
|
if (connectorRafRef.current) cancelAnimationFrame(connectorRafRef.current);
|
||||||
|
},
|
||||||
|
[]
|
||||||
|
);
|
||||||
const [filterDrawerOpen, setFilterDrawerOpen] = useState(false);
|
const [filterDrawerOpen, setFilterDrawerOpen] = useState(false);
|
||||||
const [markingAsReadId, setMarkingAsReadId] = useState<number | null>(null);
|
const [markingAsReadId, setMarkingAsReadId] = useState<number | null>(null);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue