MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / onCleanup

Function onCleanup

packages/debugger/src/main/utils.ts:161–167  ·  view source on GitHub ↗
(fn: () => void)

Source from the content-addressed store, hash-verified

159}
160
161export 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
169export function getComponentRefreshNode(owner: Readonly<Solid.Component>): Solid.Memo | null {
170 const {owned} = owner

Callers 7

update.test.tsFile · 0.85
debugOwnerComputationsFunction · 0.85
debugSignalFunction · 0.85
debugOwnerSignalsFunction · 0.85
createHoverFunction · 0.85
createDerivedSignalFunction · 0.85
createPingedSignalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…