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

Function setCacheGetter

packages/frontend/src/controller.tsx:85–92  ·  view source on GitHub ↗
(view: T, getter: () => CacheDataMap[T])

Source from the content-addressed store, hash-verified

83 }, 3 * SECOND)
84
85 function setCacheGetter<T extends debug.DevtoolsMainView>(view: T, getter: () => CacheDataMap[T]) {
86 s.onCleanup(() => {
87 const data = getter()
88 nextShortCache = {view: view as any, data: data.short}
89 longCache.set(view, data.long)
90 clearShortCache()
91 })
92 }
93 function getCache<T extends debug.DevtoolsMainView>(
94 view: T,
95 ): {[K in 'short' | 'long']: CacheDataMap[T][K] | null} {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…