Function
useDeferredValue
(value: T, initialValue?: T)
Source from the content-addressed store, hash-verified
| 505 | } |
| 506 | |
| 507 | function useDeferredValue<T>(value: T, initialValue?: T): T { |
| 508 | const hook = nextHook(); |
| 509 | const prevValue = hook !== null ? hook.memoizedState : value; |
| 510 | hookLog.push({ |
| 511 | displayName: null, |
| 512 | primitive: 'DeferredValue', |
| 513 | stackError: new Error(), |
| 514 | value: prevValue, |
| 515 | debugInfo: null, |
| 516 | dispatcherHookName: 'DeferredValue', |
| 517 | }); |
| 518 | return prevValue; |
| 519 | } |
| 520 | |
| 521 | function useId(): string { |
| 522 | const hook = nextHook(); |