(fn)
| 190 | * @param {() => void} fn |
| 191 | */ |
| 192 | export function teardown(fn) { |
| 193 | const effect = create_effect(RENDER_EFFECT, null); |
| 194 | set_signal_status(effect, CLEAN); |
| 195 | effect.teardown = fn; |
| 196 | return effect; |
| 197 | } |
| 198 | |
| 199 | /** |
| 200 | * Internal representation of `$effect(...)` |
no test coverage detected