(fn: () => void)
| 159 | } |
| 160 | |
| 161 | export function onCleanup(fn: () => void) { |
| 162 | let owner = setup.solid.getOwner() |
| 163 | if (owner) { |
| 164 | if (owner.cleanups === null) owner.cleanups = [fn] |
| 165 | else owner.cleanups.push(fn) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | export function getComponentRefreshNode(owner: Readonly<Solid.Component>): Solid.Memo | null { |
| 170 | const {owned} = owner |
no outgoing calls
no test coverage detected
searching dependent graphs…