fix: types for timer in platform agnostic way

This commit is contained in:
Michael Zetterberg
2025-03-14 14:08:48 +01:00
parent f954deaf22
commit 66682be4d2

View File

@@ -24,7 +24,7 @@ export function SessionRefresher() {
const session = useSession()
const pathname = usePathname()
const searchParams = useSearchParams()
const timeoutId = useRef<Timer>()
const timeoutId = useRef<ReturnType<typeof setTimeout>>()
// Simple inactivity control. Reset when the URL changes.
const stopPreRefreshAt = useMemo(