(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void)
| 336 | } |
| 337 | |
| 338 | function createEffectFn(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void) { |
| 339 | return () => { |
| 340 | fn((cleanupFn) => (node.cleanupFns ??= []).push(cleanupFn)); |
| 341 | }; |
| 342 | } |
no test coverage detected