MCPcopy Create free account
hub / github.com/ccj-007/easy-lowcode / getJSON

Function getJSON

src/utils/storage.ts:8–11  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

6 localStorage.setItem(key, JSON.stringify(data))
7}
8export const getJSON = (key: string) => {
9 const obj = localStorage.getItem(key)
10 return obj ? JSON.parse(obj) : null
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected