UNPKG
common-hook
Version:
latest (1.3.2)
1.3.2
1.2.0
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.3
0.0.2
0.0.1
提供项目中常用的 React Hooks
github.com/JainaXiong/common-hook
JainaXiong/common-hook
common-hook
/
es
/
effect
/
useDebounceEffect.d.ts
15 lines
(14 loc)
•
368 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** *
@name
useEffect+防抖 *
@description
* 在事件被触发n秒后再执行回调,如果在这n秒内又被触发,则重新计时 *
@example
* useDebounceEffect( () => { setRecords((val) => [...val, value]) }, [value], { wait: 1000 } ) */
export
declare
const
useDebounceEffect
:
(
effect
:
any
,
deps
?:
any
,
options
?:
any
) =>
void
;