MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / saveDomainStore

Function saveDomainStore

src/store/migration.ts:137–141  ·  view source on GitHub ↗
(key: string, state: Record<string, unknown>)

Source from the content-addressed store, hash-verified

135}
136
137function saveDomainStore(key: string, state: Record<string, unknown>): void {
138 if (Object.keys(state).length > 0) {
139 localStorage.setItem(key, JSON.stringify({ state, version: 0 }));
140 }
141}
142
143export function needsMigration(): boolean {
144 if (typeof window === 'undefined') return false;

Callers 1

migrateFromLegacyStoreFunction · 0.85

Calls 1

setItemMethod · 0.80

Tested by

no test coverage detected