File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - [x] useMemoizedFunction
3838 - [x] useMemoCompare
3939 - [x] useMemoDeepCompare
40+ - [ ] useRaf
4041 - [ ] useMergedRef
42+ - [ ] useObjectRef
43+ - [ ] useArrayRef
4144 - [x] useLazyRef
4245 - [x] useId
4346
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ export const useIdle = (cb: (deadline?: IdleDeadline | DOMHighResTimeStamp | voi
1212
1313 const invoke = useRef (
1414 requestIdleCallback !== undefined
15- ? ( fn : typeof cb , opt : { timeout ?: number } ) => requestIdleCallback ( cb , opt )
15+ ? ( fn : typeof cb , opt : { timeout ?: number } ) => requestIdleCallback ( fn , opt )
1616 : unsupportedBehavior
1717 ? unsupportedBehavior === "immediatly"
1818 ? undefined
1919 : unsupportedBehavior === "animationFrame"
2020 ? ( fn : typeof cb ) => requestAnimationFrame ( fn )
21- : ( fn : typeof cb , opt : { timeout ?: number } ) => setTimeout ( ( ) => cb , opt . timeout )
21+ : ( fn : typeof cb , opt : { timeout ?: number } ) => setTimeout ( fn , opt . timeout )
2222 : ( ) => { }
2323 ) ;
2424 const cancel = useRef (
You can’t perform that action at this time.
0 commit comments