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

Function separate

packages/overlay/src/index.tsx:145–150  ·  view source on GitHub ↗
(data: T, callback: (value: T) => void)

Source from the content-addressed store, hash-verified

143 return typeof data === 'object' ? (JSON.parse(JSON.stringify(data)) as T) : data
144}
145function separate<T>(data: T, callback: (value: T) => void): void {
146 queueMicrotask(() => {
147 const v = clone(data)
148 queueMicrotask(() => callback(v))
149 })
150}

Callers 1

OverlayFunction · 0.85

Calls 1

cloneFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…