MCPcopy Create free account
hub / github.com/Noumena-Network/code / readSharedHeight

Function readSharedHeight

src/hooks/useVirtualScroll.ts:85–93  ·  view source on GitHub ↗
(columns: number, key: string)

Source from the content-addressed store, hash-verified

83}
84
85function readSharedHeight(columns: number, key: string): number | undefined {
86 const cacheKey = sharedHeightCacheKey(columns, key)
87 const hit = sharedHeightCache.get(cacheKey)
88 if (hit !== undefined) {
89 sharedHeightCache.delete(cacheKey)
90 sharedHeightCache.set(cacheKey, hit)
91 }
92 return hit
93}
94
95function writeSharedHeight(columns: number, key: string, height: number): void {
96 const cacheKey = sharedHeightCacheKey(columns, key)

Callers 1

useVirtualScrollFunction · 0.85

Calls 4

sharedHeightCacheKeyFunction · 0.85
deleteMethod · 0.80
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected