MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / readPersistedFoldState

Function readPersistedFoldState

packages/app-core/src/lib/code-block-copy.ts:173–176  ·  view source on GitHub ↗
(storageKey: string, index: number)

Source from the content-addressed store, hash-verified

171}
172
173function readPersistedFoldState(storageKey: string, index: number): boolean | null {
174 const value = readFoldMap(storageKey)[String(index)]
175 return typeof value === 'boolean' ? value : null
176}
177
178function readFoldMap(storageKey: string): Record<string, boolean> {
179 if (typeof window === 'undefined') return {}

Callers 1

enhanceCodeBlockCopyFunction · 0.85

Calls 1

readFoldMapFunction · 0.85

Tested by

no test coverage detected