跳至正文

useIsMounted

查询组件是否仍然挂载。

Signature

useIsMounted(): () => boolean

Import

import { useIsMounted } from "@gunkin/uiify/hooks";