MCPcopy Create free account
hub / github.com/code100x/daily-code / useMountStatus

Function useMountStatus

apps/web/hooks/useMountStatus.ts:3–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { useEffect, useState } from "react";
2
3const useMountStatus = () => {
4 const [mounted, setMounted] = useState(false);
5
6 useEffect(() => {
7 setMounted(true);
8 }, []);
9
10 return mounted;
11};
12
13export default useMountStatus;

Callers 1

BlogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected