(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void)
| 328 | } |
| 329 | |
| 330 | function createEffectFn(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void) { |
| 331 | return () => { |
| 332 | fn((cleanupFn) => (node.cleanupFns ??= []).push(cleanupFn)); |
| 333 | }; |
| 334 | } |
no test coverage detected
searching dependent graphs…