Function
useInsertionEffect
(
create: () => mixed,
inputs: Array<mixed> | void | null,
)
Source from the content-addressed store, hash-verified
| 365 | } |
| 366 | |
| 367 | function useInsertionEffect( |
| 368 | create: () => mixed, |
| 369 | inputs: Array<mixed> | void | null, |
| 370 | ): void { |
| 371 | nextHook(); |
| 372 | hookLog.push({ |
| 373 | displayName: null, |
| 374 | primitive: 'InsertionEffect', |
| 375 | stackError: new Error(), |
| 376 | value: create, |
| 377 | debugInfo: null, |
| 378 | dispatcherHookName: 'InsertionEffect', |
| 379 | }); |
| 380 | } |
| 381 | |
| 382 | function useEffect( |
| 383 | create: () => (() => void) | void, |