Function
useEffect
(
create: () => (() => void) | void,
deps: Array<mixed> | void | null,
)
Source from the content-addressed store, hash-verified
| 380 | } |
| 381 | |
| 382 | function useEffect( |
| 383 | create: () => (() => void) | void, |
| 384 | deps: Array<mixed> | void | null, |
| 385 | ): void { |
| 386 | nextHook(); |
| 387 | hookLog.push({ |
| 388 | displayName: null, |
| 389 | primitive: 'Effect', |
| 390 | stackError: new Error(), |
| 391 | value: create, |
| 392 | debugInfo: null, |
| 393 | dispatcherHookName: 'Effect', |
| 394 | }); |
| 395 | } |
| 396 | |
| 397 | function useImperativeHandle<T>( |
| 398 | ref: {current: T | null} | ((inst: T | null) => mixed) | null | void, |