Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-hook-form/react-hook-form
/ sleep
Function
sleep
app/src/defaultValuesAsync.tsx:4–5 ·
view source on GitHub ↗
(data: T, ms: number)
Source
from the content-addressed store, hash-verified
2
import { useForm } from
'react-hook-form'
;
3
4
const sleep = <T,>(data: T, ms: number) =>
5
new Promise<T>((res) => setTimeout(() => res(data), ms));
6
7
function DefaultValues() {
8
const { register } = useForm({
Callers
5
DefaultValues
Function · 0.70
App
Function · 0.50
Loader
Function · 0.50
resolver
Function · 0.50
App
Function · 0.50
Calls
no outgoing calls
Tested by
4
App
Function · 0.40
Loader
Function · 0.40
resolver
Function · 0.40
App
Function · 0.40