fix: types for timer in platform agnostic way
This commit is contained in:
@@ -24,7 +24,7 @@ export function SessionRefresher() {
|
|||||||
const session = useSession()
|
const session = useSession()
|
||||||
const pathname = usePathname()
|
const pathname = usePathname()
|
||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const timeoutId = useRef<Timer>()
|
const timeoutId = useRef<ReturnType<typeof setTimeout>>()
|
||||||
|
|
||||||
// Simple inactivity control. Reset when the URL changes.
|
// Simple inactivity control. Reset when the URL changes.
|
||||||
const stopPreRefreshAt = useMemo(
|
const stopPreRefreshAt = useMemo(
|
||||||
|
|||||||
Reference in New Issue
Block a user