This function is a react hook for determining whether the consuming component is currently mounted on the DOM.
import { useIsMounted } from '@oneblink/apps-react'const isMounted = useIsMounted()if (isMounted.current) { // DO SOMETHING HERE} Copy
import { useIsMounted } from '@oneblink/apps-react'const isMounted = useIsMounted()if (isMounted.current) { // DO SOMETHING HERE}
Whether the current component is mounted.
This function is a react hook for determining whether the consuming component is currently mounted on the DOM.
Example