UNPKG
@gdjiami/hooks
Version:
latest (0.5.1)
next (0.3.0)
0.5.1
0.5.0
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
react hooks for mygzb.com
@gdjiami/hooks
/
lib
/
useRefUnmounted.d.ts
6 lines
(5 loc)
•
234 B
TypeScript
View Raw
1
2
3
4
5
6
/// <reference types="react" />
/** * 检查是否已经卸载,如果组件在执行异步操作,应该判断当前组件是否卸载 */
export
default
function
useRefUnmounted
()
: import(
"react"
).MutableRefObject<boolean>;