Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
apps
/
web
/
src
/
hooks
/
useNowMinute.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
6 lines
251 Bytes
Copy permalink
Copy
Raw
1
import
{
minuteTick
}
from
"
@t3tools/client-runtime/clock
"
;
2
import
{
useSyncExternalStore
}
from
"
react
"
;
3
4
export
function
useNowMinute
():
string
{
5
return
useSyncExternalStore
(
minuteTick
.
subscribe
,
minuteTick
.
getSnapshot
,
minuteTick
.
getSnapshot
);
6
}