mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(lint): clear remaining biome errors (unused code, optional chains, non-null assertions, effect deps)
This commit is contained in:
@@ -6,6 +6,7 @@ export function RouteAnnouncer() {
|
||||
const isFirstRender = useRef(true);
|
||||
const announcerRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
// biome-ignore lint/correctness/useExhaustiveDependencies: pathname is the intentional trigger for re-announcing on route change
|
||||
useEffect(() => {
|
||||
if (isFirstRender.current) {
|
||||
isFirstRender.current = false;
|
||||
|
||||
Reference in New Issue
Block a user