Function
useDebugValue
(value: any, formatterFn: ?(value: any) => any)
Source from the content-addressed store, hash-verified
| 419 | } |
| 420 | |
| 421 | function useDebugValue(value: any, formatterFn: ?(value: any) => any) { |
| 422 | hookLog.push({ |
| 423 | displayName: null, |
| 424 | primitive: 'DebugValue', |
| 425 | stackError: new Error(), |
| 426 | value: typeof formatterFn === 'function' ? formatterFn(value) : value, |
| 427 | debugInfo: null, |
| 428 | dispatcherHookName: 'DebugValue', |
| 429 | }); |
| 430 | } |
| 431 | |
| 432 | function useCallback<T>(callback: T, inputs: Array<mixed> | void | null): T { |
| 433 | const hook = nextHook(); |