's'
This commit is contained in:
@@ -6,7 +6,7 @@ const CLICK_THRESHOLD = 5;
|
||||
/** 连续点击 5 次打开小红书主页 */
|
||||
export function useXhClickOpener(xhUrl: string | undefined) {
|
||||
const countRef = useRef(0);
|
||||
const timerRef = useRef<ReturnType<typeof setTimeout>>();
|
||||
const timerRef = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
|
||||
|
||||
return useCallback(
|
||||
(e: React.MouseEvent) => {
|
||||
|
||||
Reference in New Issue
Block a user