(
owner: Solid.Owner,
fn: VoidFunction,
prepend = false,
symbol?: symbol,
)
| 257 | * @returns a function to remove the cleanup callback |
| 258 | */ |
| 259 | export function onParentCleanup( |
| 260 | owner: Solid.Owner, |
| 261 | fn: VoidFunction, |
| 262 | prepend = false, |
| 263 | symbol?: symbol, |
| 264 | ): VoidFunction { |
| 265 | if (owner.owner) return onOwnerCleanup(owner.owner, fn, prepend, symbol) |
| 266 | return () => { |
| 267 | /* noop */ |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * Listen to when the owner is disposed. (not on cleanup) |
no test coverage detected
searching dependent graphs…