Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
{ useEffect, useState } from
"react"
;
2
3
const
useMountStatus = () => {
4
const
[mounted, setMounted] = useState(false);
5
6
useEffect(() => {
7
setMounted(true);
8
}, []);
9
10
return
mounted;
11
};
12
13
export
default useMountStatus;
Callers
1
Blog
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected