Skip to content

Commit 93abe95

Browse files
doc: documented throttle hook
1 parent b88cf93 commit 93abe95

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Hooks/useThrottleNew.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useEffect, useCallback, useRef } from "react";
22

3-
43
const useThrottle = (callback, delay = 300) => {
54
// Use refs to persist values between renders
65
const conditionRef = useRef(true);

0 commit comments

Comments
 (0)